Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 1 | [tox] |
Dina Saparbaeva | 02bd40a | 2021-02-11 22:51:37 +0600 | [diff] [blame] | 2 | minversion = 3.1.1 |
Goutham Pacha Ravi | f47cefe | 2023-01-05 16:17:42 -0800 | [diff] [blame] | 3 | envlist = py3,pep8 |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 4 | |
| 5 | [testenv] |
Goutham Pacha Ravi | eff4f9b | 2019-10-24 22:22:28 -0700 | [diff] [blame] | 6 | basepython = python3 |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 7 | usedevelop = True |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 8 | setenv = |
| 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 Ravi | abb4a8f | 2020-04-22 18:24:16 -0700 | [diff] [blame] | 14 | deps = |
wu.shiming | a5c2b7d | 2020-12-14 17:59:28 +0800 | [diff] [blame] | 15 | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
Goutham Pacha Ravi | abb4a8f | 2020-04-22 18:24:16 -0700 | [diff] [blame] | 16 | -r{toxinidir}/requirements.txt |
| 17 | -r{toxinidir}/test-requirements.txt |
| 18 | |
Raissa Sarmento | 80f5fbf | 2017-10-16 14:38:36 +0100 | [diff] [blame] | 19 | # commands = python setup.py test --slowest --testr-args='{posargs}' |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 20 | |
| 21 | [testenv:pep8] |
lkuchlan | 88452b3 | 2020-02-20 11:52:48 +0200 | [diff] [blame] | 22 | commands = |
| 23 | flake8 {posargs} |
| 24 | check-uuid --package manila_tempest_tests |
| 25 | |
| 26 | [testenv:uuidgen] |
| 27 | commands = check-uuid --fix --package manila_tempest_tests |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 28 | |
| 29 | [testenv:venv] |
| 30 | commands = {posargs} |
| 31 | |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 32 | [testenv:docs] |
Hervé Beraud | 8cce66b | 2021-01-07 12:54:11 +0100 | [diff] [blame] | 33 | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 34 | -r{toxinidir}/doc/requirements.txt |
Andreas Jaeger | a3fef5c | 2020-04-23 10:00:19 +0200 | [diff] [blame] | 35 | commands = sphinx-build -W -b html doc/source doc/build/html |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 36 | |
| 37 | [testenv:releasenotes] |
Hervé Beraud | 8cce66b | 2021-01-07 12:54:11 +0100 | [diff] [blame] | 38 | deps = {[testenv:docs]deps} |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 39 | commands = |
| 40 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 41 | |
| 42 | [testenv:debug] |
| 43 | commands = oslo_debug_helper {posargs} |
| 44 | |
| 45 | [flake8] |
| 46 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame] | 47 | # W503 line break before binary operator |
| 48 | # W504 line break after binary operator |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 49 | show-source = True |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame] | 50 | ignore = E123,E125,W503,W504 |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 51 | builtins = _ |
| 52 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |
lkuchlan | 1d1461d | 2020-08-04 11:19:11 +0300 | [diff] [blame] | 53 | import-order-style = pep8 |
| 54 | application-import-names = manila_tempest_tests |