Run pre-commit during test

This commit is contained in:
Anthony Sottile 2015-12-25 09:37:18 -08:00
parent e306ff3b7d
commit 3a3a7a153a
7 changed files with 20 additions and 21 deletions

13
tox.ini
View file

@ -4,27 +4,20 @@ project = pre_commit_hooks
envlist = py26,py27,py33,py34,pypy,pypy3
[testenv]
install_command = pip install --use-wheel {opts} {packages}
deps = -rrequirements-dev.txt
passenv = HOME HOMEPATH LANG
passenv = HOME HOMEPATH PROGRAMDATA
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --fail-under 100
flake8 {[tox]project} testing tests setup.py
pre-commit install -f --install-hooks
pre-commit run --all-files
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