Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 1 | [tox] |
Ghanshyam Mann | 1fac68f | 2019-10-30 07:47:38 +0000 | [diff] [blame] | 2 | minversion = 3.1.1 |
zhangboye | 2eccbbc | 2021-04-20 13:50:34 +0800 | [diff] [blame^] | 3 | envlist = py3,pypy,pep8 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 4 | skipsdist = True |
Ghanshyam Mann | 1fac68f | 2019-10-30 07:47:38 +0000 | [diff] [blame] | 5 | ignore_basepython_conflict = True |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 6 | |
| 7 | [testenv] |
Ghanshyam Mann | 1fac68f | 2019-10-30 07:47:38 +0000 | [diff] [blame] | 8 | basepython = python3 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 9 | usedevelop = True |
pengyuesheng | cb79921 | 2019-09-26 14:16:28 +0800 | [diff] [blame] | 10 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 11 | setenv = |
| 12 | VIRTUAL_ENV={envdir} |
| 13 | PYTHONWARNINGS=default::DeprecationWarning |
| 14 | OS_STDOUT_CAPTURE=1 |
| 15 | OS_STDERR_CAPTURE=1 |
| 16 | OS_TEST_TIMEOUT=60 |
| 17 | deps = -r{toxinidir}/test-requirements.txt |
| 18 | commands = stestr run {posargs} |
| 19 | |
| 20 | [testenv:pep8] |
| 21 | commands = flake8 {posargs} |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 26 | [testenv:docs] |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 27 | commands = |
| 28 | sphinx-build -a -E -W -b html doc/source doc/build/html |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 29 | |
| 30 | [testenv:releasenotes] |
| 31 | commands = |
| 32 | sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html |
| 33 | |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 34 | [flake8] |
| 35 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 36 | # W503 line break before binary operator |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 37 | show-source = True |
Andreas Jaeger | 7716ce0 | 2020-05-03 11:11:49 +0200 | [diff] [blame] | 38 | ignore = E123,E125,W503 |
Chandan Kumar | b30a192 | 2017-12-09 20:24:46 +0530 | [diff] [blame] | 39 | builtins = _ |
| 40 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |