Skip to content

Commit

Permalink
Change spellchecking 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMatveev686 committed Oct 25, 2023
1 parent bfc7bed commit 57b5123
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
name: Spellcheck Action
name: spellcheck aspell
on: push

jobs:
build:
name: Spellcheck
spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rojopolis/[email protected]
name: Spellcheck
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
config_path: spellcheck/spellcheck.yml # put path to configuration file here
task_name: Markdown
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
- name: Install Aspell
run: |
sudo apt-get install aspell aspell-en
- name: Build documents
run: |
# Perform any documentation building that might be required
- name: Spell check
run: |
python -m pyspelling -c spellcheck/spellAspell.yml
16 changes: 8 additions & 8 deletions spellcheck/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
matrix:
- name: Markdown
sources:
- '**/**/*.md'
default_encoding: utf-8
hunspell:
aspell:
lang: en
d: en_US
mode: markdown
ignore-case: true
dictionary:
wordlists:
- spellcheck/wordlist.txt # <-- put path to custom dictionary file here
- spellcheck/wordlistHunspell.txt
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- pymdownx.superfences
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
- pre
sources:
- '**/**/*.md'
default_encoding: utf-8

0 comments on commit 57b5123

Please sign in to comment.