-
Notifications
You must be signed in to change notification settings - Fork 73
/
tox.ini
63 lines (56 loc) · 1.22 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
[tox]
minversion = 3.8.0
toxworkdir = {env:TOX_WORK_DIR:.tox}
skip_missing_interpreters = True
envlist = py{38,39,pypy3,310,311,312,313},black,mypy,pylint,vulture,docs
parallel_show_output = True
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
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.12
commands =
poetry install --no-root -v
poetry run black --check .
[testenv:mypy]
basepython = python3.12
commands =
poetry install --no-root -v
poetry run mypy .
[testenv:pylint]
basepython = python3.12
commands =
poetry install --no-root -v
poetry run pylint scripts/ tartufo/ tests/
[testenv:vulture]
basepython = python3.12
commands =
poetry install --no-root -v
poetry run vulture --min-confidence 70 \
tartufo/ \
tests/ \
vulture_whitelist.py
[testenv:docs]
basepython = python3.12
commands =
poetry install --no-root --with docs -v
poetry run make -C docs clean html spelling