-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
65 lines (56 loc) · 1005 Bytes
/
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
;tox documentation: https://testrun.org/tox/latest/config.html
[tox]
envlist = flake8, pylint, py27
[testenv]
deps =
mock
pytest
pyyaml
commands = py.test {posargs}
[testenv:pytest]
deps =
mock
pytest
pyyaml
commands = py.test {posargs}
[testenv:pylint]
basepython = python2.7
deps =
argparse
pylint==1.5.0
pyyaml
commands = pylint --rcfile=.pylintrc pakit
[testenv:flake8]
basepython = python2.7
deps =
argparse
flake8
pyyaml
commands = flake8
[testenv:coverage]
passenv =
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
deps =
coveralls
mock
pytest
pytest-cov
pyyaml
commands = py.test --cov=pakit {posargs}
[flake8]
exclude = .tox,*.egg*,build,docs,dist,venv
; Ignore some warnings, comma list
ignore = F403
max-complexity = 10
statistics = 1
[pep8]
exclude = .tox,*.egg*,build,docs,dist,venv
; Ignore some warnings, comma list
;ignore =
statistics = 1
[pytest]
addopts = -v -rfEws --showlocals
norecursedirs = .eggs .git .tox build dist venv
;vim:set et sw=2 ts=4: