-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
63 lines (53 loc) · 1.78 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
[tox]
minversion = 2.0
envlist = py35, pep8, docs
skipsdist = True
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
basepython = python3.5
deps = {[testenv]deps}
whitelist_externals = bash
commands = bash tools/flake8wrap.sh {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
# commands = python setup.py test --coverage --testr-args='{posargs}'
basepython = python3.5
commands =
python setup.py testr --coverage \
--testr-args='{posargs}'
coverage report
coveralls
[testenv:docs]
basepython = python3.5
commands = python setup.py build_sphinx
[testenv:releasenotes]
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:integration]
setenv = {[testenv]setenv}
OS_TEST_PATH=./datahub/tests/functional
commands = ostestr --concurrency 1 {posargs}
[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E265 block comment should start with '# '
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
ignore = E125,E126,E128,E129,E265,H404,H405
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/datahub/datahub-config-generator.conf