-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
84 lines (74 loc) · 1.2 KB
/
tox.ini
File metadata and controls
84 lines (74 loc) · 1.2 KB
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
[tox]
minversion = 3.3.0
isolated_build = true
envlist = py{36,37,38,39,310}, docs, mypy, coverage
[testenv]
deps =
pytest
-rrequirements.txt
commands =
pytest
# Don't run this in CI
[testenv:coverage]
deps =
coverage[toml]
{[testenv]deps}
commands =
coverage run -m pytest
coverage report --fail-under 80
[testenv:bandit]
deps =
bandit
commands =
bandit -r fxp
[testenv:flake8]
deps =
flake8
flake8-docstrings
flake8-typing-imports
commands =
flake8
[testenv:pylint]
deps =
pylint
commands =
pylint fxp
[testenv:linters]
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:bandit]commands}
[testenv:docs]
setenv =
PYTHONWARNINGS = ignore::UserWarning:mkdocstrings.handlers.python
deps =
-rrequirements.txt
-rdocs/requirements.txt
commands =
mkdocs -q build
[testenv:mypy]
deps =
construct-typing
mypy
commands =
mypy fxp tests
[flake8]
docstring-convention = google
max_line_length = 88
per_file_ignores =
tests/*.py: D
exclude =
.tox
dist
venv
[gh-actions]
python =
3.10: py310, docs, mypy
3.9: py39
3.8: py38
3.7: py37, linters
3.6: py36