-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathtox.ini
50 lines (44 loc) · 1.5 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
project = detect_secrets_server
# These should match the travis env list
envlist = py{35,36,37,py3}
skip_missing_interpreters = true
tox_pip_extensions_ext_pip_custom_platform = true
[testenv]
passenv = SSH_AUTH_SOCK
deps =
-rrequirements-dev.txt
--no-cache-dir
whitelist_externals = coverage
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --include=tests/* --fail-under 100
coverage report --show-missing --include=detect_secrets_server/* --fail-under 93
pre-commit run --all-files
[testenv:py35]
# this overrides the default testenv and removes pre-commit, because
# pre-commit and its hooks installs non-py35-friendly packages
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --include=tests/* --fail-under 100
coverage report --show-missing --include=detect_secrets_server/* --fail-under 93
[testenv:pypy3]
# this overrides the default testenv and removes pre-commit, because
# pre-commit and its hooks installs non-py35-friendly packages
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --show-missing --include=tests/* --fail-under 100
coverage report --show-missing --include=detect_secrets_server/* --fail-under 93
[testenv:venv]
basepython = /usr/bin/python3.6
envdir = venv
commands =
pre-commit install -f --install-hooks
[testenv:pre-commit]
deps = pre-commit>=0.16.3
commands = pre-commit {posargs}
[pep8]
ignore = E501