-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
59 lines (48 loc) · 1.47 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
[tox]
minversion = 2.0
envlist = py3,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
PYTHONWARNINGS=default::DeprecationWarning
TESTS_DIR=./esi_leap/tests/
SQLALCHEMY_SILENCE_UBER_WARNING=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pytest -v --cov=esi_leap {posargs}
[testenv:integration]
commands = pytest -v esi_leap/integration_tests
[testenv:pep8]
commands = flake8 esi_leap {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:genconfig]
basepython = python3
commands =
oslo-config-generator --config-file etc/esi-leap/esi-leap-config-generator.conf
[testenv:genpolicy]
basepython = python3
sitepackages = False
commands =
oslopolicy-sample-generator --config-file=etc/esi-leap/esi-leap-policy-generator.conf
[testenv:releasenotes]
deps = {[testenv:docs]deps}
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,I100,I201,W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build