toddlers/tox.ini
Pierre-Yves Chibon 7af467ef1d Make the tests flake8 valid and enforce it in tox
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-06-26 15:18:09 +00:00

26 lines
417 B
INI

[tox]
envlist = py36,py37,py38,black,flake8
# If the user is missing an interpreter, don't fail
skip_missing_interpreters = True
skipsdist = True
[testenv]
deps =
-r requirements.txt
-r test-requirements.txt
setenv =
PYTHONPATH={toxinidir}
commands =
pytest {posargs}
[testenv:black]
deps =
black
commands =
black --check --diff .
[testenv:flake8]
deps =
flake8
commands =
flake8 .