blob: e23dbc8860551bbd5b873200243f7433b17cd654 [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
Matthias Runge590f3382021-07-09 09:38:55 +02002minversion = 3.18.0
zhangboye2eccbbc2021-04-20 13:50:34 +08003envlist = py3,pypy,pep8
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00004ignore_basepython_conflict = True
Chandan Kumarb30a1922017-12-09 20:24:46 +05305
6[testenv]
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00007basepython = python3
Matthias Runge590f3382021-07-09 09:38:55 +02008sitepackages = False
Chandan Kumarb30a1922017-12-09 20:24:46 +05309usedevelop = True
Chandan Kumarb30a1922017-12-09 20:24:46 +053010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
13 OS_STDOUT_CAPTURE=1
14 OS_STDERR_CAPTURE=1
15 OS_TEST_TIMEOUT=60
Matthias Runge590f3382021-07-09 09:38:55 +020016deps =
17 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
18 -r{toxinidir}/requirements.txt
19
Chandan Kumarb30a1922017-12-09 20:24:46 +053020commands = stestr run {posargs}
21
22[testenv:pep8]
Matthias Runge590f3382021-07-09 09:38:55 +020023deps = hacking>=3.0,<3.1.0
Chandan Kumarb30a1922017-12-09 20:24:46 +053024commands = flake8 {posargs}
25
26[testenv:venv]
27commands = {posargs}
28
Chandan Kumarb30a1922017-12-09 20:24:46 +053029[testenv:docs]
Matthias Runge590f3382021-07-09 09:38:55 +020030deps =
31 -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
32 -r{toxinidir}/doc/requirements.txt
Andreas Jaeger7716ce02020-05-03 11:11:49 +020033commands =
34 sphinx-build -a -E -W -b html doc/source doc/build/html
Matthias Runge590f3382021-07-09 09:38:55 +020035setenv = PYTHONHASHSEED=0
Chandan Kumarb30a1922017-12-09 20:24:46 +053036
37[testenv:releasenotes]
38commands =
39 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
40
Chandan Kumarb30a1922017-12-09 20:24:46 +053041[flake8]
42# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger7716ce02020-05-03 11:11:49 +020043# W503 line break before binary operator
Chandan Kumarb30a1922017-12-09 20:24:46 +053044show-source = True
Andreas Jaeger7716ce02020-05-03 11:11:49 +020045ignore = E123,E125,W503
Chandan Kumarb30a1922017-12-09 20:24:46 +053046builtins = _
47exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build