2014-01-30 10:57:14 +01:00
|
|
|
[tox]
|
2019-10-30 06:48:52 +00:00
|
|
|
minversion = 3.1.1
|
2022-05-10 19:25:24 -05:00
|
|
|
envlist = py39,py38,pep8
|
2019-10-30 06:48:52 +00:00
|
|
|
ignore_basepython_conflict = True
|
2014-01-30 10:57:14 +01:00
|
|
|
|
|
|
|
[testenv]
|
2019-10-30 06:48:52 +00:00
|
|
|
basepython = python3
|
2014-01-30 10:57:14 +01:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2014-02-10 10:55:11 +01:00
|
|
|
usedevelop = True
|
2018-04-23 13:44:28 -04:00
|
|
|
deps =
|
2022-01-12 23:27:43 +01:00
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
2018-04-23 13:44:28 -04:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2016-04-06 10:27:05 +00:00
|
|
|
passenv = OS_TEST_*
|
2018-02-01 13:52:10 -05:00
|
|
|
commands = stestr run --slowest {posargs}
|
2014-01-30 10:57:14 +01:00
|
|
|
|
2015-12-15 22:29:43 -04:30
|
|
|
[testenv:docs]
|
2020-04-08 07:42:53 -05:00
|
|
|
deps =
|
2022-01-12 23:27:43 +01:00
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
2020-04-08 07:42:53 -05:00
|
|
|
-r{toxinidir}/doc/requirements.txt
|
2018-07-07 11:07:38 +09:00
|
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
2015-12-15 22:29:43 -04:30
|
|
|
|
2015-11-25 15:15:37 -06:00
|
|
|
[testenv:releasenotes]
|
2020-04-08 07:42:53 -05:00
|
|
|
deps =
|
2022-01-12 23:27:43 +01:00
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
2020-04-08 07:42:53 -05:00
|
|
|
-r{toxinidir}/doc/requirements.txt
|
2015-11-25 15:15:37 -06:00
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/.doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2014-01-30 10:57:14 +01:00
|
|
|
[testenv:pep8]
|
2014-02-10 10:55:11 +01:00
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
2018-01-22 11:16:34 +07:00
|
|
|
doc8 {posargs}
|
2016-04-28 07:46:57 -07:00
|
|
|
|
2014-01-30 10:57:14 +01:00
|
|
|
[testenv:cover]
|
2018-02-01 13:52:10 -05:00
|
|
|
setenv =
|
|
|
|
PYTHON=coverage run --source glance_store --parallel-mode
|
|
|
|
commands =
|
|
|
|
stestr run {posargs}
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2014-01-30 10:57:14 +01:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2018-01-13 12:45:40 -05:00
|
|
|
# See glance_store/tests/functional/README.rst for information on writing or
|
|
|
|
# running functional tests.
|
2016-06-07 14:43:50 +00:00
|
|
|
[testenv:functional-swift]
|
2016-04-06 10:27:05 +00:00
|
|
|
sitepackages = True
|
2018-02-01 13:52:10 -05:00
|
|
|
commands =
|
|
|
|
stestr run --slowest --test-path=./glance_store/tests/functional/swift
|
2016-06-07 14:43:50 +00:00
|
|
|
|
|
|
|
[testenv:functional-filesystem]
|
2018-02-01 13:52:10 -05:00
|
|
|
commands =
|
|
|
|
stestr run --slowest --test-path=./glance_store/tests/functional/filesystem
|
2015-11-27 15:34:44 +00:00
|
|
|
|
2018-01-22 11:16:34 +07:00
|
|
|
[doc8]
|
2021-08-12 05:15:34 -04:00
|
|
|
ignore-path = .venv,.git,.tox,*glance_store/locale*,*lib/python*,glance_store.egg*,doc/build,*requirements.txt
|
2018-01-22 11:16:34 +07:00
|
|
|
|
2014-01-30 10:57:14 +01:00
|
|
|
[flake8]
|
2014-02-10 10:55:11 +01:00
|
|
|
# TODO(dmllr): Analyze or fix the warnings blacklisted below
|
|
|
|
# H301 one import per line
|
|
|
|
# H404 multi line docstring should start with a summary
|
2015-02-06 15:38:18 +01:00
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
2020-04-02 15:22:04 +02:00
|
|
|
# W503 line break before binary operator
|
|
|
|
# W504 line break after binary operator
|
|
|
|
ignore = H301,H404,H405,W503,W504
|
2016-07-12 14:27:23 +08:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,etc,*glance_store/locale*,*lib/python*,*egg,build
|
2018-03-22 12:38:16 -04:00
|
|
|
|