run linting/typechecking only once

This commit is contained in:
Thomas Lindner 2021-11-18 02:09:18 +01:00
parent 877b79c681
commit 7d67b59f5a

View file

@ -30,19 +30,24 @@ console_scripts =
basicpy = basicpy:main
[tox:tox]
envlist = py38, py39
envlist = lint, py38, py39
isolated_build = True
[testenv]
[testenv:lint]
skip_install = True
deps =
black
flake8
mypy
pytest
commands =
black --check --diff src tests
flake8 src tests
mypy --disallow-untyped-defs src tests
[testenv]
deps =
pytest
commands =
pytest tests
[flake8]