mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Make hook-tmpl resilient to future changes
This commit is contained in:
parent
41dcaff3fb
commit
173ce83484
4 changed files with 27 additions and 51 deletions
14
tox.ini
14
tox.ini
|
|
@ -6,12 +6,6 @@ envlist = py27,py34,py35,pypy
|
|||
[testenv]
|
||||
deps = -rrequirements-dev.txt
|
||||
passenv = GOROOT HOME HOMEPATH PROGRAMDATA TERM
|
||||
setenv =
|
||||
VIRTUALENV_NO_DOWNLOAD = 1
|
||||
GIT_AUTHOR_NAME = "test"
|
||||
GIT_COMMITTER_NAME = "test"
|
||||
GIT_AUTHOR_EMAIL = "test@example.com"
|
||||
GIT_COMMITTER_EMAIL = "test@example.com"
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
|
|
@ -25,3 +19,11 @@ commands =
|
|||
|
||||
[pep8]
|
||||
ignore = E265,E309,E501
|
||||
|
||||
[pytest]
|
||||
env =
|
||||
GIT_AUTHOR_NAME=test
|
||||
GIT_COMMITTER_NAME=test
|
||||
GIT_AUTHOR_EMAIL=test@example.com
|
||||
GIT_COMMITTER_EMAIL=test@example.com
|
||||
VIRTUALENV_NO_DOWNLOAD=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue