-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
73 lines (62 loc) · 1.65 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
[tox]
minversion = 4.0.0
envlist = py3,black,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv =
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
[testenv:lower-constraints]
deps = -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands =
black {tox_root}
flake8 {posargs}
allowlist_externals = black
[testenv:black]
commands = black {tox_root} --check
allowlist_externals = black
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source azimuth_caas_operator --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[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}
[testenv:kopf]
passenv =
ANSIBLE_RUNNER_IMAGE_TAG
commands =
pip install -U -e {tox_root}
kopf run azimuth_caas_operator/operator.py --all-namespaces
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
# TODO add headers and remove H102
ignore = E123,E125,H102
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
# match black
max-line-length = 88