mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
33 lines
669 B
INI
33 lines
669 B
INI
[tox]
|
|
envlist = py27,py36,py37,pypy,pypy3,pre-commit
|
|
|
|
[testenv]
|
|
deps = -rrequirements-dev.txt
|
|
passenv = HOME LOCALAPPDATA
|
|
commands =
|
|
coverage erase
|
|
coverage run -m pytest {posargs:tests}
|
|
coverage report --fail-under 100
|
|
pre-commit install
|
|
|
|
[testenv:pre-commit]
|
|
skip_install = true
|
|
deps = pre-commit
|
|
commands = pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:venv]
|
|
envdir = venv-pre_commit
|
|
commands =
|
|
|
|
[pep8]
|
|
ignore = E265,E501,W504
|
|
|
|
[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
|
|
PRE_COMMIT_NO_CONCURRENCY=1
|