-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
98 lines (84 loc) · 1.84 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
94
95
96
97
98
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 2.0
envlist = pep8, pep257, pylint, bandit, py{27,34,35,36,py,py3},
skipsdist = True
skip_missing_interpreters = True
recreate=True
# docs,
[testenv]
usedevelop = True
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps =
sphinx
pytest
pytest-cov
pytest-sugar
-r{toxinidir}/requirements.txt
py27: mock
pypy: mock
commands =
py.test -vv --junitxml=unit_result.xml --cov-config .coveragerc --cov-report html --cov=config_editor {posargs:test}
coverage report --fail-under 89
[testenv:venv]
commands = {posargs:}
[tox:travis]
2.7 = install, py27
3.4 = install, py34
3.5 = install, py35, bandit, pylint
3.6 = install, py36, pep8, pep257
pypy = install, pypy
pypy3 = install, pypy3
[testenv:pep8]
deps =
flake8
usedevelop = False
commands = flake8
[testenv:pep257]
deps =
pep257
usedevelop = False
commands = pep257 config_editor
[testenv:install]
deps =
usedevelop = False
commands = pip install ./ -vvv -U
[testenv:pylint]
basepython = python3.5
deps =
pylint
-r{toxinidir}/requirements.txt
commands = pylint config_editor
[flake8]
basepython = python3.6
exclude =
.venv,
.git,
.tox,
dist,
doc,
*lib/python*,
*egg,
build,
__init__.py,
docs
ignore =
show-pep8 = True
show-source = True
count = True
[testenv:docs]
deps =
sphinx
commands = python setup.py build_sphinx
[testenv:upload_docs]
deps =
sphinx
sphinx-pypi-upload
-r{toxinidir}/requirements.txt
commands = python setup.py build_sphinx upload_sphinx
[testenv:bandit]
deps = bandit
commands = bandit -r config_editor