mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Merge 5ba9965103 into 20209f691b
This commit is contained in:
commit
2e63227bc1
9 changed files with 450 additions and 3 deletions
7
tox.ini
7
tox.ini
|
|
@ -4,7 +4,8 @@ project = pre_commit_hooks
|
|||
envlist = py27,py35,py36,pypy
|
||||
|
||||
[testenv]
|
||||
deps = -rrequirements-dev.txt
|
||||
deps =
|
||||
-rrequirements-dev.txt
|
||||
passenv = HOME HOMEPATH PROGRAMDATA
|
||||
setenv =
|
||||
GIT_AUTHOR_NAME = "test"
|
||||
|
|
@ -13,8 +14,8 @@ setenv =
|
|||
GIT_COMMITTER_EMAIL = "test@example.com"
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
coverage report --show-missing --fail-under 100
|
||||
coverage run --source=pre_commit_hooks/ -m pytest -rxs --durations 10 {posargs:tests}
|
||||
coverage report --show-missing --fail-under 99
|
||||
pre-commit install -f --install-hooks
|
||||
pre-commit run --all-files
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue