forked from benhowes/pytest-socket
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
35 lines (29 loc) · 691 Bytes
/
tox.ini
File metadata and controls
35 lines (29 loc) · 691 Bytes
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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py35,py36,py37,py38,flake8,coverage
[testenv]
deps =
pytest
pytest-httpbin
commands = pytest {posargs:tests}
[testenv:flake8]
basepython = python3.6
deps = flake8
skip_install = true
commands = flake8 pytest_socket.py setup.py tests
[flake8]
exclude = .direnv,.git,.tox
max-complexity = 10
max-line-length = 160
[testenv:coverage]
basepython = python3.6
deps =
{[testenv]deps}
coverage
commands = coverage erase
coverage run {envbindir}/pytest {posargs:tests}
coverage report
coverage xml
[coverage:report]
include = *pytest_socket*
omit = *tests*