forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
84 lines (72 loc) · 1.9 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
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtualenvs. This configuration file will run the test suite on all supported
# python versions. To use it, "pip install tox" and then run "tox" from this
# directory.
[tox]
# pypy38 does not work on windows, due to an internal error.
envlist = py{38,39,310,py38}
[testenv]
deps = -r requirements.txt
commands =
pytest {posargs:--cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20}
passenv =
INCLUDE
LIB
PIP_*
setenv =
with_gmp=no
[testenv:pylint]
deps = -r requirements.txt
ignore_errors = false
commands =
pylint --recursive=y examples pymodbus test
[testenv:codespell]
deps = -r requirements.txt
ignore_errors = false
commands =
codespell --ignore-words-list asend --skip="_build" examples pymodbus test
[testenv:isort]
deps = -r requirements.txt
ignore_errors = false
commands =
isort examples pymodbus test
[testenv:isort_CI]
deps = -r requirements.txt
ignore_errors = false
commands =
isort --check examples pymodbus test
[testenv:bandit]
deps = -r requirements.txt
ignore_errors = false
commands =
bandit -r -c bandit.yaml examples/ pymodbus/ test/
[testenv:flake8]
deps = -r requirements.txt
ignore_errors = false
commands =
flake8 examples/ pymodbus/ test/
[testenv:black]
deps = -r requirements.txt
ignore_errors = false
commands =
black --safe --quiet examples/ pymodbus/ test/
[testenv:black_CI]
deps = -r requirements.txt
ignore_errors = false
commands =
black --check --safe --quiet examples/ pymodbus/ test/
[testenv:docs]
allowlist_externals =
make
deps = -r requirements.txt
commands =
make -C doc/ clean
make -C doc/ html
[testenv:combined-coverage]
allowlist_externals =
ls
deps = -r requirements.txt
commands =
ls -la coverage_reports
coverage combine coverage_reports
coverage report --fail-under=60 --ignore-errors