mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add pytest options and ignore test source code coverage.
This commit is contained in:
parent
7f9dde14f0
commit
2443de2655
1 changed files with 1 additions and 3 deletions
4
tox.ini
4
tox.ini
|
|
@ -6,12 +6,10 @@ envlist = py27,py33,py34,pypy,pypy3
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
-rrequirements-dev.txt
|
-rrequirements-dev.txt
|
||||||
ipdb
|
|
||||||
ipython
|
|
||||||
passenv = HOME HOMEPATH PROGRAMDATA
|
passenv = HOME HOMEPATH PROGRAMDATA
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run -m pytest -s -rxs -vv {posargs:tests}
|
coverage run --source=pre_commit_hooks/ -m pytest -rxs --durations 10 {posargs:tests}
|
||||||
coverage report --show-missing --fail-under 100
|
coverage report --show-missing --fail-under 100
|
||||||
pre-commit install -f --install-hooks
|
pre-commit install -f --install-hooks
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue