mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 12:26:52 +00:00
Run pre-commit during test
This commit is contained in:
parent
e306ff3b7d
commit
3a3a7a153a
7 changed files with 20 additions and 21 deletions
13
tox.ini
13
tox.ini
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue