2014-04-14 13:09:14 +08:00
|
|
|
[tox]
|
|
|
|
project = pre_commit_hooks
|
|
|
|
# These should match the travis env list
|
2016-12-01 01:59:37 +08:00
|
|
|
envlist = py27,py34,py35,pypy
|
2014-04-14 13:09:14 +08:00
|
|
|
|
|
|
|
[testenv]
|
2014-06-06 00:09:21 +08:00
|
|
|
deps = -rrequirements-dev.txt
|
2015-12-26 01:37:18 +08:00
|
|
|
passenv = HOME HOMEPATH PROGRAMDATA
|
2014-04-14 13:09:14 +08:00
|
|
|
commands =
|
|
|
|
coverage erase
|
|
|
|
coverage run -m pytest {posargs:tests}
|
2014-04-14 13:21:42 +08:00
|
|
|
coverage report --show-missing --fail-under 100
|
2015-12-26 01:37:18 +08:00
|
|
|
pre-commit install -f --install-hooks
|
|
|
|
pre-commit run --all-files
|
2014-04-14 13:09:14 +08:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
envdir = venv-{[tox]project}
|
|
|
|
commands =
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length=131
|
2015-06-01 04:51:02 +08:00
|
|
|
|
|
|
|
[pep8]
|
|
|
|
ignore=E265,E309,E501
|