From 57b5123e5b76120c7420df80988b8aa60698b363 Mon Sep 17 00:00:00 2001 From: AlexeyMatveev686 Date: Wed, 25 Oct 2023 16:45:09 +0300 Subject: [PATCH] Change spellchecking 2 --- .github/workflows/spellcheck.yml | 26 +++++++++++++++++++------- spellcheck/spellcheck.yml | 16 ++++++++-------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index ccad70d8..bc9f71ba 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -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/spellcheck-github-actions@0.34.0 - 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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/spellcheck/spellcheck.yml b/spellcheck/spellcheck.yml index 9abb7381..6f0cd406 100644 --- a/spellcheck/spellcheck.yml +++ b/spellcheck/spellcheck.yml @@ -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 \ No newline at end of file + - pre + sources: + - '**/**/*.md' + default_encoding: utf-8 \ No newline at end of file