-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
60 lines (52 loc) · 1.21 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
[tox]
minversion = 2.3.1
envlist = lint,py27,py34,py35,py36,pep8py2,pep8py3,doc,coverage-report
skip_missing_interpreters = true
[testenv]
deps =
.[test]
sitepackages = False
commands =
{envpython} -m coverage run --parallel \
-m pytest --capture=no --strict {posargs}
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
{envpython} -m coverage combine
{envpython} -m coverage report
[testenv:lint]
basepython = python2.7
deps =
.[test_pylint]
commands =
{envpython} -m pylint -d c,r,i,W0613 -r n --notes= --disable=star-args \
src/custodia/openshift tests.py
[testenv:pep8py2]
basepython = python2.7
deps =
.[test_pep8]
commands =
{envpython} -m flake8
[testenv:pep8py3]
basepython = python3
deps =
.[test_pep8]
commands =
{envpython} -m flake8
[testenv:doc]
basepython = python3
deps =
.[test_docs]
commands =
python setup.py check --restructuredtext --metadata --strict
{envpython} -m markdown README.md -f {toxworkdir}/README.md.html
[pytest]
norecursedirs = build .tox
python_files = tests.py
[flake8]
exclude = .tox,*.egg,dist,build
show-source = true
max-line-length = 79
ignore = N802
application-import-names = custodia.openshift