Merge pull request #25 from waku-org/spellcheck-fix

Update Spellcheck Workflow
This commit is contained in:
Jimmy Debe 2024-07-01 13:52:27 -04:00 committed by GitHub
commit e99bd96f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 7 deletions

View File

@ -1,4 +1,3 @@
# This is workflow for spell checking using PySpelling lib (https://pypi.org/project/pyspelling/)
name: Spellcheck
on:
@ -11,12 +10,16 @@ on:
workflow_dispatch:
jobs:
build:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: igsekor/pyspelling-any@v1.0.4
name: Spellcheck
env:
MATRIX: ${{ toJson(matrix) }}
run: pyspelling --matrix "$MATRIX"
- name: Install aspell
run: sudo apt-get install -y aspell aspell-en
- name: Run spellcheck
uses: igsekor/pyspelling-any@v1.0.4
with:
args: "-c ./spellcheck.yaml"

View File

@ -2,3 +2,39 @@ matrix:
- name: markdown
sources:
- '**/*.md'
default:
dictionary:
- en_US
- en_GB
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
extensions:
- .md
- pyspelling.filters.text
sources:
- '**/*.md'
suggest: true
whitelist:
- ALLOC
- IANA
- SHARDING
- WAKU
- Waku
- danielkaiser
- creativecommons
- github
- GITHUB
- https
- iana
- md
- rfc
- RFC
- www
- DHT
- DoS
- GossipSub
- gossipsub
- libp2p
- pubsub
- subnets