-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
92 lines (84 loc) · 1.48 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
[flake8]
application-import-names = proxenos
exclude =
*.egg-info,
*.pyc,
.cache,
.eggs,
.git,
.tox,
__pycache__,
build,
dist,
docs/src/conf.py,
src/stubs,
tests/fixtures/*
ignore =
D105,
D401,
D403,
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI51,
H301
import-order-style = google
max-complexity = 10
[tox]
envlist = cov-init,py27,py33,py34,py35,py35-mypy,py35-lint,cov-report
skipsdist = True
[testenv]
# usedevelop = true
commands =
pip install -e .[consul,murmur]
py.test --cov --cov-report= {posargs}
basepython =
cov-{init,report}: python3.5
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
-rrequirements/lck/test.txt
setuptools>=17.1
setenv =
COVERAGE_FILE = .coverage.{envname}
[testenv:cov-init]
commands = coverage erase
setenv =
COVERAGE_FILE = .coverage
[testenv:cov-report]
commands =
coverage combine
coverage report -m
setenv =
COVERAGE_FILE = .coverage
[testenv:docs]
basepython = python2.7
deps =
-rrequirements/lck/docs.txt
commands =
pip install -e .[consul,murmur]
sphinx-build -W -b html -d {envtmpdir}/doctrees docs/src {envtmpdir}/html
[testenv:py35-lint]
commands = flake8 src/proxenos
deps =
-rrequirements/lck/qa.txt
[testenv:py35-mypy]
commands =
mypy -s --fast-parser src/proxenos
deps =
mypy-lang>=0.4
typed-ast
setenv =
MYPYPATH = {toxinidir}/src/stubs
[travis]
python =
2.7: py27, docs
3.3: py33
3.4: py34
3.5: cov-init, py35, py35-{lint,mypy}, cov-report