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] |
| 23 | commands = flake8 {posargs} |
| 24 | |
| 25 | [testenv:venv] |
| 26 | commands = {posargs} |
| 27 | |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 28 | [testenv:docs] |
Andreas Jaeger | a3fef5c | 2020-04-23 10:00:19 +0200 | [diff] [blame] | 29 | commands = sphinx-build -W -b html doc/source doc/build/html |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 30 | |
| 31 | [testenv:releasenotes] |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 32 | commands = |
| 33 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 34 | |
| 35 | [testenv:debug] |
| 36 | commands = oslo_debug_helper {posargs} |
| 37 | |
| 38 | [flake8] |
| 39 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame] | 40 | # W503 line break before binary operator |
| 41 | # W504 line break after binary operator |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 42 | show-source = True |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame] | 43 | ignore = E123,E125,W503,W504 |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 44 | builtins = _ |
| 45 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |
lkuchlan | 1d1461d | 2020-08-04 11:19:11 +0300 | [diff] [blame^] | 46 | import-order-style = pep8 |
| 47 | application-import-names = manila_tempest_tests |