-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
126 lines (110 loc) · 2.69 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[tox]
envlist = bandit, black-check, check-copyright, docs, flake8, isort-check, mypy, safety, pylint, vulture, py3{8,9,10,11}
labels =
code = py3{8,9,10,11}
meta = bandit, black-check, check-copyright, docs, flake8, isort-check, mypy, safety, pylint, vulture
[testenv]
allowlist_externals = pytest
setenv =
PYTHONPATH = {toxinidir}
deps =
docker>=6.1.3,<6.2.0
mistune>=2.0.5,<2.1.0
pytest>=7.3.1,<7.4.0
pytest-cov>=4.1.0,<4.2.0
pytest-lazy-fixture>=0.6.3,<0.7.0
pytest-randomly>=3.12.0,<3.13.0
commands =
pytest --basetemp={envtmpdir} --doctest-modules \
{posargs:plan4past tests} \
--cov=plan4past \
--cov-report=xml \
--cov-report=html \
--cov-report=term
[testenv:py{38,39,310,311}]
commands =
{[testenv]commands}
deps =
[testenv:flake8]
skip_install = True
deps =
flake8>=6.0.0,<6.1.0
flake8-docstrings>=1.7.0,<1.8.0
flake8-bugbear>=23.6.5,<23.7.0
flake8-isort>=6.0.0,<6.1.0
commands =
flake8 plan4past tests
[testenv:mypy]
skip_install = True
deps =
mypy>=1.3.0,<1.4.0
types-click>=7.1.8,<7.2.0
types-setuptools>=68.2.0.0,<69
commands =
mypy plan4past tests
[testenv:black]
skipdist = True
skip_install = True
deps = black>=23.3.0,<23.4.0
commands = black plan4past tests
[testenv:black-check]
skipdist = True
skip_install = True
deps = black>=23.3.0,<23.4.0
commands = black plan4past tests --check --verbose
[testenv:isort]
skipdist = True
skip_install = True
deps = isort>=5.12.0,<5.13.0
commands = isort plan4past tests
[testenv:isort-check]
skipdist = True
skip_install = True
deps = isort>=5.12.0,<5.13.0
commands = isort --check-only plan4past tests
[testenv:bandit]
skipsdist = True
skip_install = True
deps = bandit>=1.7.5,<1.8.0
commands = bandit --configfile .bandit.yml --recursive plan4past tests scripts
[testenv:pylint]
skipdist = True
deps =
pylint>=2.17.4,<2.18.0
pytest>=7.3.1,<7.4.0
docker>=6.1.3,<6.2.0
commands = pylint plan4past tests
[testenv:safety]
skipsdist = False
skip_install = False
deps = safety>=2.3.5,<2.4.0
commands = safety check
[testenv:vulture]
skipsdist = True
skip_install = True
deps = vulture>=2.7,<3
commands = vulture plan4past scripts/whitelist.py
[testenv:docs]
skip_install = True
deps =
mkdocs>=1.4.3,<1.5.0
mkdocs-material>=9.1.15,<9.2.0
markdown-include>=0.8.1,<0.9.0
pymdown-extensions>=10.0.1,<10.1.0
commands =
mkdocs build --clean
[testenv:docs-serve]
skip_install = True
deps =
mkdocs>=1.4.3,<1.5.0
mkdocs-material>=9.1.15,<9.2.0
markdown-include>=0.8.1,<0.9.0
pymdown-extensions>=10.0.1,<10.1.0
commands =
mkdocs build --clean
python -c 'print("###### Starting local server. Press Control+C to stop server ######")'
mkdocs serve
[testenv:check-copyright]
skip_install = True
deps =
commands = python scripts/check_copyright.py