Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 1 | [tox] |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 2 | minversion = 3.18.0 |
zhangboye | 2eccbbc | 2021-04-20 13:50:34 +0800 | [diff] [blame] | 3 | envlist = py3,pypy,pep8 |
Ghanshyam Mann | 1fac68f | 2019-10-30 07:47:38 +0000 | [diff] [blame] | 4 | ignore_basepython_conflict = True |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 5 | |
| 6 | [testenv] |
Ghanshyam Mann | 1fac68f | 2019-10-30 07:47:38 +0000 | [diff] [blame] | 7 | basepython = python3 |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 8 | sitepackages = False |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 9 | usedevelop = True |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [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 |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 16 | deps = |
| 17 | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 18 | -r{toxinidir}/requirements.txt |
| 19 | |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 20 | commands = stestr run {posargs} |
| 21 | |
| 22 | [testenv:pep8] |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 23 | deps = hacking>=3.0,<3.1.0 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 24 | commands = flake8 {posargs} |
| 25 | |
| 26 | [testenv:venv] |
| 27 | commands = {posargs} |
| 28 | |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 29 | [testenv:docs] |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 30 | deps = |
| 31 | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 32 | -r{toxinidir}/doc/requirements.txt |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 33 | commands = |
| 34 | sphinx-build -a -E -W -b html doc/source doc/build/html |
Matthias Runge | 590f338 | 2021-07-09 09:38:55 +0200 | [diff] [blame] | 35 | setenv = PYTHONHASHSEED=0 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 36 | |
| 37 | [testenv:releasenotes] |
| 38 | commands = |
| 39 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 40 | |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 41 | [flake8] |
| 42 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 43 | # W503 line break before binary operator |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 44 | show-source = True |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 45 | ignore = E123,E125,W503 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 46 | builtins = _ |
| 47 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |