pegleg/src/bin/pegleg/tox.ini

31 lines
490 B
INI

[tox]
envlist = py35, lint
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
basepython=python3
whitelist_externals =
find
commands =
find . -type f -name "*.pyc" -delete
pytest \
{posargs}
[testenv:fmt]
deps = yapf==0.20.0
commands =
yapf --style=pep8 -ir {toxinidir}/pegleg
[testenv:lint]
deps =
yapf==0.20.0
flake8==3.5.0
commands =
yapf -rd {toxinidir}/pegleg
flake8 {toxinidir}/pegleg
[flake8]
ignore = E251,W503