typecheck with mypy
This commit is contained in:
parent
a47c52d8ad
commit
4a10c7a9ba
21
setup.cfg
21
setup.cfg
|
@ -30,22 +30,19 @@ console_scripts =
|
||||||
basicpy = basicpy:main
|
basicpy = basicpy:main
|
||||||
|
|
||||||
[tox:tox]
|
[tox:tox]
|
||||||
envlist = py38, flake8, black, pytest
|
envlist = py38, py39
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv]
|
||||||
deps = flake8
|
deps =
|
||||||
commands =
|
black
|
||||||
flake8 src tests
|
flake8
|
||||||
|
mypy
|
||||||
[testenv:black]
|
pytest
|
||||||
deps = black
|
|
||||||
commands =
|
commands =
|
||||||
black --check --diff src tests
|
black --check --diff src tests
|
||||||
|
flake8 src tests
|
||||||
[testenv:pytest]
|
mypy src tests
|
||||||
deps = pytest
|
|
||||||
commands =
|
|
||||||
pytest tests
|
pytest tests
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
|
Loading…
Reference in a new issue