-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtox.ini
More file actions
71 lines (63 loc) · 1.55 KB
/
Copy pathtox.ini
File metadata and controls
71 lines (63 loc) · 1.55 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
70
71
[tox]
minversion = 4.28.0
envlist = py3,pep8
[testenv]
usedevelop = True
setenv =
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
constraints =
{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
allowlist_externals = find
[testenv:pep8]
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source zaqarclient --parallel-mode
commands =
stestr -q run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:functional]
setenv =
OS_TEST_PATH = ./tests/functional
ZAQARCLIENT_AUTH_FUNCTIONAL = 1
ZAQARCLIENT_TEST_FUNCTIONAL = 1
passenv =
ZAQAR_SERVICE_HOST
ZAQAR_ENDPOINT
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*.egg
# H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal()
# H205: Use assert{Greater,Less}[Equal]
# H904: Delay string interpolations at logging calls
enable-extensions = H203,H204,H205,H904
# W504 line break after binary operator
ignore = W504