mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
40 lines
657 B
INI
40 lines
657 B
INI
[tox]
|
|
envlist =
|
|
py38
|
|
py37
|
|
py36
|
|
pypy3
|
|
pre-commit
|
|
|
|
[testenv]
|
|
passenv =
|
|
APPDATA
|
|
HOME
|
|
LOCALAPPDATA
|
|
PROGRAMFILES
|
|
RUSTUP_HOME
|
|
deps =
|
|
-rrequirements-dev.txt
|
|
commands =
|
|
coverage erase
|
|
coverage run -m pytest {posargs:tests}
|
|
coverage report
|
|
|
|
[testenv:pre-commit]
|
|
skip_install = true
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[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
|