diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..185a00cd --- /dev/null +++ b/.codespellrc @@ -0,0 +1,4 @@ +[codespell] +skip = node_modules, _book, images +count = +ignore-words-list = aNULL, userA, followings diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..54d97938 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +name: Add check with codespell + +on: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + spell-check: + name: check spelling with codespell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Install codespell + run: pip install codespell + - name: Run codespell + run: codespell