2025-02-09 21:10:22 +01:00
|
|
|
[tox]
|
2025-02-09 21:36:17 +01:00
|
|
|
envlist = py,pypy3,pre-commit
|
2025-02-09 21:10:22 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps = -rrequirements-dev.txt
|
2025-02-09 21:35:37 +01:00
|
|
|
passenv = *
|
2025-02-09 21:10:22 +01:00
|
|
|
commands =
|
|
|
|
coverage erase
|
2025-02-09 21:38:08 +01:00
|
|
|
coverage run -m pytest {posargs:tests} --ignore=tests/languages
|
|
|
|
coverage report --omit=pre_commit/languages/*,tests/languages/*
|
2025-02-09 21:10:22 +01:00
|
|
|
|
|
|
|
[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
|
2025-02-09 21:35:37 +01:00
|
|
|
GIT_ALLOW_PROTOCOL=file
|
2025-02-09 21:10:22 +01:00
|
|
|
VIRTUALENV_NO_DOWNLOAD=1
|
|
|
|
PRE_COMMIT_NO_CONCURRENCY=1
|