blob: 1cf0c94ad1785bfb2c281765188d6b9bde32c0b2 [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 =
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01009 PYTHONWARNINGS=default::DeprecationWarning
10 OS_STDOUT_CAPTURE=1
11 OS_STDERR_CAPTURE=1
12 OS_TEST_TIMEOUT=60
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070013deps =
wu.shiminga5c2b7d2020-12-14 17:59:28 +080014 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070015 -r{toxinidir}/requirements.txt
16 -r{toxinidir}/test-requirements.txt
17
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010018# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010019
20[testenv:pep8]
lkuchlan88452b32020-02-20 11:52:48 +020021commands =
22 flake8 {posargs}
23 check-uuid --package manila_tempest_tests
24
25[testenv:uuidgen]
26commands = check-uuid --fix --package manila_tempest_tests
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010027
28[testenv:venv]
29commands = {posargs}
30
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010031[testenv:docs]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010032deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
33 -r{toxinidir}/doc/requirements.txt
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020034commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010035
36[testenv:releasenotes]
Hervé Beraud8cce66b2021-01-07 12:54:11 +010037deps = {[testenv:docs]deps}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010038commands =
39 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
40
41[testenv:debug]
42commands = oslo_debug_helper {posargs}
43
44[flake8]
45# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020046# W503 line break before binary operator
47# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010048show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020049ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010050builtins = _
51exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
lkuchlan1d1461d2020-08-04 11:19:11 +030052import-order-style = pep8
53application-import-names = manila_tempest_tests