diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e3009a2..10ac84d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,6 +29,8 @@ jobs: run: tox -e pyroma - name: Check static typing with MyPy run: tox -e mypy + - name: Check for typos with codespell + run: tox -e codespell docs: name: Documentation runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 8f9416f..a41fbe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,8 @@ profile = "black" multi_line_output = 3 include_trailing_comma = true reverse_relative = true + +[tool.codespell] +skip = '.git,*.pdf,*.svg' +# +# ignore-words-list = '' diff --git a/tox.ini b/tox.ini index 0ff69bd..a120fde 100644 --- a/tox.ini +++ b/tox.ini @@ -167,6 +167,13 @@ allowlist_externals = /usr/bin/cat /usr/bin/mkdir +[testenv:codespell] +description = Check for typos +deps = + codespell[toml] +commands = + codespell + [testenv:coverage-report] deps = coverage skip_install = true