forked from prometheus/client_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
93 lines (74 loc) · 1.5 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
85
86
87
88
89
90
91
92
93
[tox]
envlist = coverage-clean,py26,py27,py34,py35,py36,pypy,{py27,py36}-nooptionals,coverage-report,flake8
[base]
deps =
coverage
pytest
[testenv:py26]
; Last pytest and py version supported on py26 .
deps =
unittest2
py==1.4.31
pytest==2.9.2
coverage
futures
[testenv:py27]
deps =
{[base]deps}
futures
[testenv:pypy]
deps =
{[base]deps}
futures
[testenv]
deps =
{[base]deps}
{py27,py34,py35,py36,pypy}: twisted
commands = coverage run --parallel -m pytest {posargs}
; Ensure test suite passes if no optional dependencies are present.
[testenv:py27-nooptionals]
deps =
{[base]deps}
futures
commands = coverage run --parallel -m pytest {posargs}
[testenv:py36-nooptionals]
deps = {[base]deps}
commands = coverage run --parallel -m pytest {posargs}
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:flake8]
deps =
flake8==3.5.0
flake8-docstrings==1.3.0
flake8-import-order==0.16
skip_install = true
commands =
flake8 prometheus_client/ tests/ setup.py
[flake8]
ignore =
D,
E303,
E402,
E501,
E722,
E741,
F821,
F841,
W291,
W293,
W503,
import-order-style = google
application-import-names = prometheus_client
[isort]
force_alphabetical_sort_within_sections = True
force_sort_within_sections = True
include_trailing_comma = True
multi_line_output = 5