diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..7373aff --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,22 @@ +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/pyproject.toml b/pyproject.toml index 66e80c2..7c320c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,3 +7,9 @@ known_first_party = "vcrpy" multi_line_output = 3 use_parentheses = true include_trailing_comma = true + +[tool.codespell] +skip = '.git,*.pdf,*.svg,.tox' +ignore-regex = "\\\\[fnrstv]" +# +# ignore-words-list = ''