-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
102 lines (92 loc) · 1.96 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
[tox]
envlist =
py{36,37,38,39,310}
isort
black
flake8
bandit
mypy
docs
build
skipsdist = False
skip_missing_interpreters = True
isolated_build = True
[testenv]
skip_install = True
deps =
-rrequirements.txt
pytest
pytest-cov
pytest-html
pytest-mock
install_command =
pip install --upgrade {opts} {packages}
setenv =
PYTHONDONTWRITEBYTECODE=1
commands =
pytest -v --cov=./src --cov-branch --html=tests/htmlreport/report.html --cov-report=term-missing --cov-report=html:tests/htmlcov
[testenv:isort]
skip_install = True
deps =
isort
install_command =
pip install --upgrade {opts} {packages}
commands =
isort {posargs} ./src
[testenv:black]
skip_install = True
deps =
black
install_command =
pip install --upgrade {opts} {packages}
commands =
black {posargs} --line-length=79 ./src
[testenv:flake8]
skip_install = True
deps =
-rrequirements.txt
flake8
install_command =
pip install --upgrade {opts} {packages}
commands =
flake8 ./src
[testenv:bandit]
skip_install = True
ignore_errors = True
deps =
-rrequirements.txt
bandit
install_command =
pip install --upgrade {opts} {packages}
commands =
bandit --recursive ./src
[testenv:mypy]
skip_install = True
deps =
-rrequirements.txt
mypy
install_command =
pip install --upgrade {opts} {packages}
commands =
mypy --strict --install-types --non-interactive ./src
[testenv:docs]
skip_install = True
deps =
-rrequirements.txt
sphinx
sphinx_rtd_theme
pandoc-plantuml-filter
install_command =
pip install --upgrade {opts} {packages}
commands =
/bin/bash -xc "cd docs/source; pandoc ../README.md -o README.rst --filter pandoc-plantuml"
sphinx-build {posargs} -W --keep-going -E -b html docs/source docs/build/html
allowlist_externals = /bin/bash
[testenv:build]
skip_install = True
deps =
build
install_command =
pip install --upgrade {opts} {packages}
commands =
python3 -m build