diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4ceac32..71bb1fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: - name: Install dependencies run: python -m pip install tox - name: Run tox - run: tox -e style,mypy + run: tox -e style test: name: Run unit tests runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index 4e743e2..57afd78 100644 --- a/tox.ini +++ b/tox.ini @@ -26,16 +26,9 @@ commands = [testenv:style] deps = - flake8 + pre-commit commands = - flake8 {toxinidir}/sphinx_click/ - -[testenv:mypy] -deps = - mypy - types-docutils -commands = - mypy sphinx_click + pre-commit run --all-files --show-diff-on-failure [testenv:docs] commands =