forked from IBM/detect-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
29 lines (25 loc) · 783 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[tox]
project = detect_secrets
# These should match the travis env list
envlist = py{36,37,38,39}
skip_missing_interpreters = true
# disabling this option until latest venv-update version is compatible with pip v21
# tox_pip_extensions_ext_venv_update = true
[testenv]
deps = -rrequirements-dev.txt
whitelist_externals = coverage
commands =
coverage erase
coverage run -m pytest tests
coverage report --show-missing --include=tests/* --fail-under 100
coverage report --show-missing --include=detect_secrets/* --fail-under 98
pre-commit run --all-files --show-diff-on-failure
[testenv:venv]
envdir = venv
commands =
pre-commit install -f --install-hooks
[testenv:pre-commit]
deps = pre-commit >= 1.16.1
commands = pre-commit {posargs}
[pep8]
ignore = E501