blob: 406cee4cb2651ca564765c88364cfccc494d71b6 [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00002minversion = 3.1.1
zhangboye2eccbbc2021-04-20 13:50:34 +08003envlist = py3,pypy,pep8
Chandan Kumarb30a1922017-12-09 20:24:46 +05304skipsdist = True
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00005ignore_basepython_conflict = True
Chandan Kumarb30a1922017-12-09 20:24:46 +05306
7[testenv]
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00008basepython = python3
Chandan Kumarb30a1922017-12-09 20:24:46 +05309usedevelop = True
pengyueshengcb799212019-09-26 14:16:28 +080010install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Chandan Kumarb30a1922017-12-09 20:24:46 +053011setenv =
12 VIRTUAL_ENV={envdir}
13 PYTHONWARNINGS=default::DeprecationWarning
14 OS_STDOUT_CAPTURE=1
15 OS_STDERR_CAPTURE=1
16 OS_TEST_TIMEOUT=60
17deps = -r{toxinidir}/test-requirements.txt
18commands = stestr run {posargs}
19
20[testenv:pep8]
21commands = flake8 {posargs}
22
23[testenv:venv]
24commands = {posargs}
25
Chandan Kumarb30a1922017-12-09 20:24:46 +053026[testenv:docs]
Andreas Jaeger7716ce02020-05-03 11:11:49 +020027commands =
28 sphinx-build -a -E -W -b html doc/source doc/build/html
Chandan Kumarb30a1922017-12-09 20:24:46 +053029
30[testenv:releasenotes]
31commands =
32 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
33
Chandan Kumarb30a1922017-12-09 20:24:46 +053034[flake8]
35# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger7716ce02020-05-03 11:11:49 +020036# W503 line break before binary operator
Chandan Kumarb30a1922017-12-09 20:24:46 +053037show-source = True
Andreas Jaeger7716ce02020-05-03 11:11:49 +020038ignore = E123,E125,W503
Chandan Kumarb30a1922017-12-09 20:24:46 +053039builtins = _
40exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build