diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 06a93ca..e1ece9e 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -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" + diff --git a/spellcheck.yaml b/spellcheck.yaml index 9d20cff..2684db4 100644 --- a/spellcheck.yaml +++ b/spellcheck.yaml @@ -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