blob: 907516fda3c0d5fdbabce0fc0452d09e71f0292f [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
Dina Saparbaeva02bd40a2021-02-11 22:51:37 +06002minversion = 3.1.1
Goutham Pacha Ravif47cefe2023-01-05 16:17:42 -08003envlist = py3,pep8
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01004
5[testenv]
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07006basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01007usedevelop = True
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01008setenv =
9 VIRTUAL_ENV={envdir}
10 PYTHONWARNINGS=default::DeprecationWarning
11 OS_STDOUT_CAPTURE=1
12 OS_STDERR_CAPTURE=1
13 OS_TEST_TIMEOUT=60
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070014deps =
wu.shiminga5c2b7d2020-12-14 17:59:28 +080015 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070016 -r{toxinidir}/requirements.txt
17 -r{toxinidir}/test-requirements.txt
18
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010019# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010020
21[testenv:pep8]
lkuchlan88452b32020-02-20 11:52:48 +020022commands =
23 flake8 {posargs}
24 check-uuid --package manila_tempest_tests
25
26[testenv:uuidgen]
27commands = check-uuid --fix --package manila_tempest_tests
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010028
29[testenv:venv]
30commands = {posargs}
31
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010032[testenv:docs]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010033deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
34 -r{toxinidir}/doc/requirements.txt
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020035commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010036
37[testenv:releasenotes]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010038deps = {[testenv:docs]deps}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010039commands =
40 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
41
42[testenv:debug]
43commands = oslo_debug_helper {posargs}
44
45[flake8]
46# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020047# W503 line break before binary operator
48# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010049show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020050ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010051builtins = _
52exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
lkuchlan1d1461d2020-08-04 11:19:11 +030053import-order-style = pep8
54application-import-names = manila_tempest_tests