forked from godaddy/tartufo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (55 loc) · 1.19 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
[tox]
minversion = 3.7.0
toxworkdir = {env:TOX_WORK_DIR:.tox}
skip_missing_interpreters = True
envlist = py{37,38,39,py3,310,311},black,mypy,pylint,vulture,docs
parallel_show_output = True
isolated_build = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy3: pypy3
[testenv]
allowlist_externals =
make
poetry
pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONHASHSEED=0
PYTHONWARNINGS=ignore
commands =
poetry install --no-root -v
poetry run pytest {posargs}
[testenv:black]
basepython = python3.11
commands =
poetry install --no-root -v
poetry run black --check .
[testenv:mypy]
basepython = python3.11
commands =
poetry install --no-root -v
poetry run mypy .
[testenv:pylint]
basepython = python3.11
commands =
poetry install --no-root -v
poetry run pylint scripts/ tartufo/ tests/
[testenv:vulture]
basepython = python3.11
commands =
poetry install --no-root -v
poetry run vulture --min-confidence 70 \
tartufo/ \
tests/ \
vulture_whitelist.py
[testenv:docs]
basepython = python3.11
commands =
poetry install --no-root --extras "docs" -v
make -C docs clean html spelling