From 7ee2cb6024c40778474f972646b2a747afc6a917 Mon Sep 17 00:00:00 2001 From: apoorvsadana <95699312+apoorvsadana@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:16:45 +0530 Subject: [PATCH] add spellcheck yml --- .github/workflows/spellcheck.yml | 40 ++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 7844abe..5062c6a 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,12 +1,28 @@ -name: Spellcheck Action -on: push - -jobs: - build: - name: Spellcheck - runs-on: ubuntu-latest - steps: - # The checkout step - - uses: actions/checkout@v3 - - uses: rojopolis/spellcheck-github-actions@0.42.0 - name: Spellcheck +matrix: + - name: SPCheck + aspell: + lang: en + dictionary: + encoding: utf-8 + wordlists: + - docs/spell-check-custom-words.txt + pipeline: + - pyspelling.filters.context: + context_visible_first: true + escapes: \\[\\`~] + delimiters: + # Ignore all code blocks + - open: '(?s)^(?P *`{3,}\s*(\w+\s*,?\s*)+.*?)$' + close: '^( *`{3,})$' + - pyspelling.filters.markdown: + markdown_extensions: + - pymdownx.superfences: + - pyspelling.filters.html: + comments: false + ignores: + - code + - pre + sources: + - '**/*.mdx' + default_encoding: utf-8 + \ No newline at end of file