Skip to content

Commit

Permalink
Add GitHub Spellcheck Action
Browse files Browse the repository at this point in the history
  • Loading branch information
vlmaier committed Jan 18, 2023
1 parent 1a9ae0c commit d6f1a49
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
Empty file added .github/wordlist.txt
Empty file.
16 changes: 16 additions & 0 deletions .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://www.javierbrea.com/blog/spellcheck-github-action/

name: spellcheck
on:
pull_request:
jobs:
check-spelling:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check Spelling
uses: rojopolis/[email protected]
with:
config_path: .spellcheck.yaml
task_name: Markdown
27 changes: 27 additions & 0 deletions .spellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://www.javierbrea.com/blog/spellcheck-github-action/

matrix:
- name: Markdown
expect_match: false
apsell:
mode: en
dictionary:
wordlists:
- .wordlist.txt
output: wordlist.dic
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- markdown.extensions.extra:
- pyspelling.filters.html:
comments: false
attributes:
- alt
ignores:
- ':matches(code, pre)'
- 'code'
- 'pre'
- 'blockquote'
sources:
- 'README.md'

0 comments on commit d6f1a49

Please sign in to comment.