diff --git a/tox.ini b/tox.ini index 96020a7f..0586b15c 100644 --- a/tox.ini +++ b/tox.ini @@ -42,13 +42,13 @@ deps = pre-commit skip_install = true commands = pre-commit run --all-files -[testenv:mypy{,-test}] -commands_pre = -deps = - -r requirements/py{py_dot_ver}/typing.txt -commands = - !test: mypy src/ {posargs} - test: mypy --show-error-codes --warn-unused-ignores tests/non-pytest/mypy-ignore-tests/ +[testenv:mypy] +deps = -r requirements/py{py_dot_ver}/typing.txt +commands = mypy src/ {posargs} + +[testenv:mypy-test] +base = mypy +commands = mypy --show-error-codes --warn-unused-ignores tests/non-pytest/mypy-ignore-tests/ [testenv:test-lazy-imports] deps = -r requirements/py{py_dot_ver}/test.txt