Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (61 loc) · 1.38 KB
/
Copy pathtox.ini
File metadata and controls
69 lines (61 loc) · 1.38 KB
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
[tox]
minversion = 4.28.0
envlist = py3,pep8
skipsdist = True
[testenv]
usedevelop = True
setenv =
PYTHONDONTWRITEBYTECODE=1
constraints =
{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run {posargs}
stestr slowest
[testenv:pep8]
skip_install = True
description =
Run style checks.
deps =
pre-commit
commands =
pre-commit run -a
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run
deps =
{[testenv]deps}
coverage>=5.0 # Apache-2.0
commands =
coverage erase
{[testenv]commands}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build/html doc/build/doctrees
sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html
allowlist_externals = rm
[testenv:releasenotes]
skip_install = True
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]
show-source = True
# We only enable the hacking (H) checks
select = H
ignore = H301
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build