typecheck with mypy

master
Thomas Lindner 2021-11-17 23:46:38 +01:00
parent a47c52d8ad
commit 4a10c7a9ba
1 changed files with 9 additions and 12 deletions

View File

@ -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]