blob: 867c920c5044752c189bcf470faf5e43f9723e4f [file] [log] [blame]
Chandan Kumarb30a1922017-12-09 20:24:46 +05301[tox]
Ghanshyam Mann1fac68f2019-10-30 07:47:38 +00002minversion = 3.1.1
sandriichenko6f24cdd2018-03-05 14:43:46 +02003envlist = 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]
27commands = python setup.py build_sphinx
28
29[testenv:releasenotes]
30commands =
31 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
32
Chandan Kumarb30a1922017-12-09 20:24:46 +053033[flake8]
34# E123, E125 skipped as they are invalid PEP-8.
35
36show-source = True
37ignore = E123,E125
38builtins = _
39exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build