pre-commit-hooks/tox.ini

30 lines
693 B
INI
Raw Normal View History

2014-04-14 13:09:14 +08:00
[tox]
project = pre_commit_hooks
# These should match the travis env list
2015-01-18 02:21:44 +08:00
envlist = py26,py27,py33,py34,pypy,pypy3
2014-04-14 13:09:14 +08:00
[testenv]
install_command = pip install --use-wheel {opts} {packages}
2014-06-06 00:09:21 +08:00
deps = -rrequirements-dev.txt
2015-05-17 10:11:06 +08:00
passenv = HOME HOMEPATH LANG
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
2014-04-14 13:09:14 +08:00
flake8 {[tox]project} testing tests setup.py
pylint {[tox]project} testing tests setup.py
[testenv:venv]
envdir = venv-{[tox]project}
commands =
[testenv:docs]
deps =
{[testenv]deps}
sphinx
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[flake8]
max-line-length=131