@@ -4,111 +4,111 @@ envlist = py3,pep8
44
55[testenv]
66description =
7- Run unit tests.
7+ Run unit tests.
88usedevelop = true
99setenv =
10- OS_STDOUT_CAPTURE =1
11- OS_STDERR_CAPTURE =1
12- OS_TEST_TIMEOUT =60
10+ OS_STDOUT_CAPTURE =1
11+ OS_STDERR_CAPTURE =1
12+ OS_TEST_TIMEOUT =60
1313deps =
14- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
15- -r{toxinidir}/test-requirements.txt
16- -r{toxinidir}/requirements.txt
14+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
15+ -r{toxinidir}/test-requirements.txt
16+ -r{toxinidir}/requirements.txt
1717commands =
18- stestr run {posargs}
18+ stestr run {posargs}
1919
2020[testenv:pep8]
2121description =
22- Run style checks.
22+ Run style checks.
2323skip_install = true
2424deps =
25- pre-commit
25+ pre-commit
2626commands =
27- pre-commit run --all-files --show-diff-on-failure
27+ pre-commit run --all-files --show-diff-on-failure
2828
2929[testenv:bandit]
3030description =
31- Run bandit security checks.
31+ Run bandit security checks.
3232skip_install = true
3333deps =
34- pre-commit
34+ pre-commit
3535commands =
36- pre-commit run --all-files --show-diff-on-failure bandit
36+ pre-commit run --all-files --show-diff-on-failure bandit
3737
3838[testenv:unit-tips]
3939commands =
40- python -m pip install -q -U -e {toxinidir}/../cliff# egg=cliff
41- python -m pip install -q -U -e {toxinidir}/../keystoneauth# egg=keystoneauth
42- python -m pip install -q -U -e {toxinidir}/../osc-lib# egg=osc_lib
43- python -m pip install -q -U -e {toxinidir}/../openstacksdk# egg=openstacksdk
44- python -m pip freeze
45- stestr run {posargs}
40+ python -m pip install -q -U -e {toxinidir}/../cliff# egg=cliff
41+ python -m pip install -q -U -e {toxinidir}/../keystoneauth# egg=keystoneauth
42+ python -m pip install -q -U -e {toxinidir}/../osc-lib# egg=osc_lib
43+ python -m pip install -q -U -e {toxinidir}/../openstacksdk# egg=openstacksdk
44+ python -m pip freeze
45+ stestr run {posargs}
4646
4747[testenv:functional{,-tips,-py310,-py311,-py312,-py313,-py314}]
4848description =
49- Run functional tests.
49+ Run functional tests.
5050setenv =
51- OS_TEST_PATH =./openstackclient/tests/functional
51+ OS_TEST_PATH =./openstackclient/tests/functional
5252passenv =
53- OS_*
53+ OS_*
5454commands =
55- tips: python -m pip install -q -U -e {toxinidir}/../cliff# egg=cliff
56- tips: python -m pip install -q -U -e {toxinidir}/../keystoneauth# egg=keystoneauth1
57- tips: python -m pip install -q -U -e {toxinidir}/../osc-lib# egg=osc_lib
58- tips: python -m pip install -q -U -e {toxinidir}/../openstacksdk# egg=openstacksdk
59- tips: python -m pip freeze
60- {[testenv]commands}
55+ tips: python -m pip install -q -U -e {toxinidir}/../cliff# egg=cliff
56+ tips: python -m pip install -q -U -e {toxinidir}/../keystoneauth# egg=keystoneauth1
57+ tips: python -m pip install -q -U -e {toxinidir}/../osc-lib# egg=osc_lib
58+ tips: python -m pip install -q -U -e {toxinidir}/../openstacksdk# egg=openstacksdk
59+ tips: python -m pip freeze
60+ {[testenv]commands}
6161
6262[testenv:venv]
6363description =
64- Run specified command in a virtual environment with all dependencies installed.
64+ Run specified command in a virtual environment with all dependencies installed.
6565deps =
66- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
67- -r{toxinidir}/requirements.txt
68- -r{toxinidir}/doc/requirements.txt
66+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
67+ -r{toxinidir}/requirements.txt
68+ -r{toxinidir}/doc/requirements.txt
6969commands =
70- {posargs}
70+ {posargs}
7171
7272[testenv:cover]
7373description =
74- Run unit tests and generate coverage report.
74+ Run unit tests and generate coverage report.
7575setenv =
76- {[testenv]setenv}
77- PYTHON =coverage run --source openstackclient --parallel-mode
76+ {[testenv]setenv}
77+ PYTHON =coverage run --source openstackclient --parallel-mode
7878commands =
79- stestr run {posargs}
80- coverage combine
81- coverage html -d cover
82- coverage xml -o cover/coverage.xml
79+ stestr run {posargs}
80+ coverage combine
81+ coverage html -d cover
82+ coverage xml -o cover/coverage.xml
8383
8484[testenv:debug]
8585description =
86- Run specified tests through oslo_debug_helper, which allows use of pdb.
86+ Run specified tests through oslo_debug_helper, which allows use of pdb.
8787passenv =
88- OS_*
88+ OS_*
8989commands =
90- oslo_debug_helper -t openstackclient/tests {posargs}
90+ oslo_debug_helper -t openstackclient/tests {posargs}
9191
9292[testenv:docs]
9393description =
94- Build documentation in HTML format.
94+ Build documentation in HTML format.
9595deps =
96- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
97- -r{toxinidir}/doc/requirements.txt
96+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
97+ -r{toxinidir}/doc/requirements.txt
9898commands =
99- sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
100- sphinx-build -a -E -W -d doc/build/doctrees -b man doc/source doc/build/man
101- # Validate redirects (must be done after the docs build
102- whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
99+ sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
100+ sphinx-build -a -E -W -d doc/build/doctrees -b man doc/source doc/build/man
101+ # Validate redirects (must be done after the docs build
102+ whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
103103
104104[testenv:releasenotes]
105105description =
106- Build release note documentation in HTML format.
106+ Build release note documentation in HTML format.
107107deps =
108- -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
109- -r{toxinidir}/doc/requirements.txt
108+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
109+ -r{toxinidir}/doc/requirements.txt
110110commands =
111- sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
111+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
112112
113113[flake8]
114114show-source = true
0 commit comments