forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
92 lines (80 loc) · 1.8 KB
/
tox.ini
File metadata and controls
92 lines (80 loc) · 1.8 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
85
86
87
88
89
90
91
92
# 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,py39}
[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
skipsdist = true
commands =
pylint --recursive=y examples pymodbus test
[testenv:codespell]
deps = codespell
ignore_errors = false
skipsdist = true
commands =
codespell
[testenv:isort]
deps = isort
ignore_errors = false
skipsdist = true
commands =
isort .
[testenv:isort_CI]
deps = isort
ignore_errors = false
skipsdist = true
commands =
isort --check .
[testenv:bandit]
deps = bandit
ignore_errors = false
skipsdist = true
commands =
bandit -r -c bandit.yaml .
[testenv:flake8]
deps = flake8
ignore_errors = false
skipsdist = true
commands =
flake8
[testenv:black]
deps = black
ignore_errors = false
skipsdist = true
commands =
black --safe --quiet examples/ pymodbus/ test/
[testenv:black_CI]
deps = black
ignore_errors = false
skipsdist = true
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