Skip to content

Commit

Permalink
tox: Use pre-commit for 'style' target
Browse files Browse the repository at this point in the history
The mypy target is removed.

Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Jul 31, 2023
1 parent 68df09d commit 975ea90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 2 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 975ea90

Please sign in to comment.