-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (50 loc) · 1.21 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]
envlist = flake8, mypy, bandit, pip-audit, py37, py38, py39, py310, py311, py312
[testenv]
package_name = openems
deps =
pytest
pytest-cov
pytest-randomly
commands =
pytest -v --durations=0 --cov={envsitepackagesdir}/{[testenv]package_name} --cov-report=xml --cov-fail-under=0 {posargs}
[pytest]
filterwarnings =
error
ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version\. .*:DeprecationWarning
[testenv:flake8]
deps =
pydocstyle
flake8
flake8-docstrings
flake8-coding
flake8-import-order
flake8-quotes
flake8-blind-except
flake8-commas
flake8-pep3101
pep8-naming
hacking
flake8-bugbear
mccabe
commands = flake8
[flake8]
#C101 Coding magic comment not found
#E501 line too long
#H306 imports not in alphabetical order
#B301 Python 3 does not include `.iter*` methods on dictionaries.
ignore = C101 E501 H306 B301
exclude = .tox .eggs
max-complexity = 10
[testenv:mypy]
deps =
mypy
commands = mypy --install-types --non-interactive {toxinidir}/{[testenv]package_name}
[testenv:bandit]
deps =
bandit
commands = bandit -r {toxinidir}/{[testenv]package_name}
[testenv:pip-audit]
deps =
pip-audit
commands = pip-audit