-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
89 lines (81 loc) · 1.43 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
[flake8]
application-import-names = reqwire
exclude =
*.egg-info,
*.pyc,
.cache,
.eggs
.git,
.tox,
__pycache__,
build,
dist,
docs/source/conf.py,
src/stubs,
tests/fixtures/*,
ignore =
D401,
D403,
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI51,
H301
import-order-style = google
max-complexity = 11
[tox]
envlist = cov-init,py{27,33,34,35,36},py35-{mypy,lint},cov-report
[testenv]
usedevelop = true
commands = pytest --cov --cov-report= {posargs}
basepython =
cov-{init,report}: python3.5
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
deps =
-rrequirements/lck/test.txt
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
changedir = docs
deps =
-rrequirements/lck/docs.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
[testenv:py35-lint]
commands = flake8 src/reqwire
deps =
-rrequirements/lck/qa.txt
[testenv:py35-mypy]
commands =
mypy --ignore-missing-imports --follow-imports=skip --fast-parser src/reqwire
deps =
mypy
typed-ast
setenv =
MYPYPATH = src/stubs
[travis]
python =
2.7: py27, docs
3.3: py33
3.4: py34
3.5: cov-init, py35, py35-{lint,mypy}, cov-report
3.6: py36