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 |
pengyuesheng | e2eb90b | 2019-09-24 16:03:31 +0800 | [diff] [blame] | 9 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 10 | setenv = |
| 11 | VIRTUAL_ENV={envdir} |
| 12 | PYTHONWARNINGS=default::DeprecationWarning |
| 13 | OS_STDOUT_CAPTURE=1 |
| 14 | OS_STDERR_CAPTURE=1 |
| 15 | OS_TEST_TIMEOUT=60 |
| 16 | deps = -r{toxinidir}/requirements.txt |
| 17 | -r{toxinidir}/test-requirements.txt |
Raissa Sarmento | 80f5fbf | 2017-10-16 14:38:36 +0100 | [diff] [blame] | 18 | # commands = python setup.py test --slowest --testr-args='{posargs}' |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 19 | |
| 20 | [testenv:pep8] |
| 21 | commands = flake8 {posargs} |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 26 | [testenv:docs] |
| 27 | commands = python setup.py build_sphinx |
| 28 | |
| 29 | [testenv:releasenotes] |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 30 | commands = |
| 31 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 32 | |
| 33 | [testenv:debug] |
| 34 | commands = oslo_debug_helper {posargs} |
| 35 | |
| 36 | [flake8] |
| 37 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame^] | 38 | # W503 line break before binary operator |
| 39 | # W504 line break after binary operator |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 40 | show-source = True |
Andreas Jaeger | 0cb685b | 2020-04-01 13:38:38 +0200 | [diff] [blame^] | 41 | ignore = E123,E125,W503,W504 |
Raissa Sarmento | 3dd627b | 2017-09-27 12:18:44 +0100 | [diff] [blame] | 42 | builtins = _ |
| 43 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |