run linting/typechecking only once
This commit is contained in:
parent
877b79c681
commit
7d67b59f5a
11
setup.cfg
11
setup.cfg
|
@ -30,19 +30,24 @@ console_scripts =
|
||||||
basicpy = basicpy:main
|
basicpy = basicpy:main
|
||||||
|
|
||||||
[tox:tox]
|
[tox:tox]
|
||||||
envlist = py38, py39
|
envlist = lint, py38, py39
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
|
|
||||||
[testenv]
|
[testenv:lint]
|
||||||
|
skip_install = True
|
||||||
deps =
|
deps =
|
||||||
black
|
black
|
||||||
flake8
|
flake8
|
||||||
mypy
|
mypy
|
||||||
pytest
|
|
||||||
commands =
|
commands =
|
||||||
black --check --diff src tests
|
black --check --diff src tests
|
||||||
flake8 src tests
|
flake8 src tests
|
||||||
mypy --disallow-untyped-defs src tests
|
mypy --disallow-untyped-defs src tests
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps =
|
||||||
|
pytest
|
||||||
|
commands =
|
||||||
pytest tests
|
pytest tests
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
|
Loading…
Reference in a new issue