Skip to content

Commit

Permalink
fix spelling action
Browse files Browse the repository at this point in the history
  • Loading branch information
joapuiib committed Oct 26, 2024
1 parent f8645f3 commit 4ba6022
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install pyspelling
run: pip install pyspelling
- name: Install hunspell
run: sudo apt install hunspell
- name: Build documents
Expand All @@ -42,9 +43,9 @@ jobs:
- name: Download dictionary
if: steps.cache-file.outputs.cache-hit != 'true'
run: |
curl -L https://github.com/Softcatala/catalan-dict-tools/blob/master/resultats/hunspell/catalan-valencia.dic
-o .hunspell/ca_ES_valencia.dic
curl -L https://raw.githubusercontent.com/Softcatala/catalan-dict-tools/refs/heads/master/resultats/hunspell/catalan-valencia.aff
-o .hunspell/ca_ES_valencia.aff
hunspell -D
mkdir -p .hunspell
curl -L https://raw.githubusercontent.com/Softcatala/catalan-dict-tools/refs/heads/master/resultats/hunspell/catalan-valencia.dic -o .hunspell/ca_ES_valencia.dic
curl -L https://raw.githubusercontent.com/Softcatala/catalan-dict-tools/refs/heads/master/resultats/hunspell/catalan-valencia.aff -o .hunspell/ca_ES_valencia.aff
- name: Spell check
run: pyspelling
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Pyspelling dictionary
dictionary.dic
.hunspell/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
2 changes: 1 addition & 1 deletion .pyspelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ matrix:
- site/**/*.html
hunspell:
r: True
d: ca-ES-valencia,en_US
d: ca_ES_valencia,en_US
dictionary:
wordlists:
- docs/src/dictionary/hunspell/custom.txt

0 comments on commit 4ba6022

Please sign in to comment.