-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
53 lines (47 loc) · 1.36 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
[tox]
minversion = 2.3.1
envlist = py27,pep8
skipsdist = True
# info: to run individual tests/ testcase,
# you can provide extra '-k' argument to py.test like:
# $ tox -e py27 -- -k interactive
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands =
# Cleanup cache files to avoid failures when running tox on developer env.
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
whitelist_externals =
bash
find
git
[testenv:venv]
commands = {posargs}
[testenv:pep8]
# Hacking package pulls flake8, pep8 and more https://pypi.org/project/hacking/
deps = hacking
commands = flake8 {posargs}
[flake8]
# E123 Skipped because it is ignored by default in the default pep8.
# E125 Continuation line does not distinguish itself from next logical line.
# Won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved.
# For further detail see https://review.openstack.org/#/c/36788/.
# E129 Skipped because it is too limiting when combined with other rules.
# H102 Apache 2.0 license header not found, due to neutron_tempest_plugin integration
ignore = E123,E125,E129,W503,H102
show-source = True
exclude =
.git,
.venv,
.tox,
dist,
docs,
*egg,
*.pyc,
__pycache__
[testenv:docs]
commands = python setup.py build_sphinx