blob: 8e64c3774ab64f477105acb26dac493867ad19ef [file] [log] [blame]
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05001[tox]
Riccardo Pittau7825e282019-12-23 11:20:52 +01002minversion = 3.1.0
Ghanshyame83d2202020-01-23 18:03:56 -06003envlist = py3,pep8
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05004skipsdist = True
Riccardo Pittau7825e282019-12-23 11:20:52 +01005ignore_basepython_conflict=true
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05006
7[testenv]
Ghanshyame83d2202020-01-23 18:03:56 -06008basepython = python3
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -05009usedevelop = True
chenke2494c8a2019-06-17 21:49:34 +080010install_command = pip install {opts} {packages}
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050011setenv =
12 VIRTUAL_ENV={envdir}
13 PYTHONWARNINGS=default::DeprecationWarning
chenke2494c8a2019-06-17 21:49:34 +080014deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
15 -r{toxinidir}/test-requirements.txt
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050016commands = python setup.py test --slowest --testr-args='{posargs}'
17
18[testenv:pep8]
19commands = flake8 {posargs}
20
21[testenv:venv]
22commands = {posargs}
23
24[testenv:cover]
25commands = python setup.py test --coverage --testr-args='{posargs}'
26
27[testenv:docs]
28commands = python setup.py build_sphinx
29
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080030[testenv:pdf-docs]
Kaifeng Wang6f4e2a32019-06-14 17:43:14 +080031whitelist_externals = make
32commands = sphinx-build -b latex doc/source doc/build/pdf
33 make -C doc/build/pdf
34
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050035[testenv:debug]
36commands = oslo_debug_helper {posargs}
37
38[flake8]
Riccardo Pittau441c5062020-03-30 15:06:28 +020039# [E129] Visually indented line with same indent as next logical line.
40# [W503] Line break occurred before a binary operator. Conflicts with W504.
41ignore = E129,W503
Jim Rollenhagen4f8f2292016-11-18 06:22:18 -050042
43show-source = True
44builtins = _
45exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build