forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (41 loc) · 1 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
# 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]
envlist = py{27,py27,36,37,38,39,py36,py37}
[testenv]
deps = -r requirements-tests.txt
commands =
pytest {posargs:--cov=pymodbus/ --cov-report=term-missing --cov-report=xml}
passenv =
INCLUDE
LIB
PIP_*
setenv =
with_gmp=no
[testenv:flake8]
deps = -r requirements-checks.txt
commands =
flake8
[testenv:docs]
allowlist_externals =
make
deps = -r requirements-docs.txt
commands =
make -C doc/ clean
make -C doc/ html
[testenv:combined-coverage]
allowlist_externals =
ls
deps =
-r requirements-coverage.txt
-r requirements.txt
commands =
ls -la coverage_reports
coverage combine coverage_reports
coverage report --fail-under=85 --ignore-errors
[flake8]
exclude = .tox
ignore = D211,D400,E731
max-line-length = 120