Skip to content

Commit

Permalink
add spellcheck yml
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Oct 7, 2024
1 parent 9d8e729 commit 7ee2cb6
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -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<open> *`{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

0 comments on commit 7ee2cb6

Please sign in to comment.