forked from godaddy/tartufo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (61 loc) · 1.29 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[tox]
minversion = 3.7.0
toxworkdir = {env:TOX_WORK_DIR:.tox}
skip_missing_interpreters = True
envlist = py{36,37,38,py3},black,mypy,pylint,vulture,docs
parallel_show_output = True
isolated_build = True
[gh-actions]
python =
3.6: py36
3.7: py37, black, mypy, pylint, vulture, docs
3.8: py38
pypy3: pypy3
[testenv]
whitelist_externals =
make
poetry
pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONHASHSEED=0
PYTHONWARNINGS=ignore
commands =
poetry install --no-root -v
poetry run pytest {posargs}
[testenv:pypy3]
# This is temporary until Poetry v1.1.0 due to https://github.com/python-poetry/poetry/issues/2386#issuecomment-624733547
ignore_outcome = True
[testenv:black]
basepython = python3.7
skip_install = True
deps = black==19.10b0
commands = black --check .
[testenv:mypy]
basepython = python3.7
deps = mypy
commands = mypy .
[testenv:pylint]
basepython = python3.7
deps =
pylint
requests
commands =
pylint \
scripts/ \
tartufo/ \
tests/
[testenv:vulture]
skip_install = True
basepython = python3.7
deps = vulture
commands =
vulture --min-confidence 70 \
tartufo/ \
tests/ \
vulture_whitelist.py
[testenv:docs]
basepython = python3.7
commands =
poetry install --no-root --extras "docs" -v
make -C docs clean html