diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index 3ebbf5504..000000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -name: Codespell - -on: - push: - branches: [main] - pull_request: - branches: [main] - -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/.github/workflows/qc.yml b/.github/workflows/qc.yml index 372f6b5de..474549067 100644 --- a/.github/workflows/qc.yml +++ b/.github/workflows/qc.yml @@ -36,5 +36,8 @@ jobs: - name: Check static typing with MyPy run: poetry run tox -e mypy + - name: Codespell + run: poetry run tox -e codespell + - name: Unit tests only run: poetry run python -m unittest discover tests.unit diff --git a/tox.ini b/tox.ini index cc10fde16..9c7e833ae 100644 --- a/tox.ini +++ b/tox.ini @@ -136,3 +136,11 @@ deps = commands = docstr-coverage src/ tests/ --skip-private --skip-magic description = Run the docstr-coverage tool to check documentation coverage + +[testenv:codespell] +description = Run spell checker. +skip_install = true +deps = + codespell + tomli # required for getting config from pyproject.toml +commands = codespell src/ tests/ -S tests/input