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