blob: a185fab8513f49750996707d7e401799902a95b4 [file] [log] [blame]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01001[tox]
2minversion = 2.0
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07003envlist = py3,pypy,pep8
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01004skipsdist = True
5
6[testenv]
Goutham Pacha Ravieff4f9b2019-10-24 22:22:28 -07007basepython = python3
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01008usedevelop = True
Raissa Sarmento3dd627b2017-09-27 12:18:44 +01009setenv =
10 VIRTUAL_ENV={envdir}
11 PYTHONWARNINGS=default::DeprecationWarning
12 OS_STDOUT_CAPTURE=1
13 OS_STDERR_CAPTURE=1
14 OS_TEST_TIMEOUT=60
Goutham Pacha Raviabb4a8f2020-04-22 18:24:16 -070015deps =
16 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
17 -r{toxinidir}/requirements.txt
18 -r{toxinidir}/test-requirements.txt
19
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010020# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010021
22[testenv:pep8]
23commands = flake8 {posargs}
24
25[testenv:venv]
26commands = {posargs}
27
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010028[testenv:docs]
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020029commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010030
31[testenv:releasenotes]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010032commands =
33 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
34
35[testenv:debug]
36commands = oslo_debug_helper {posargs}
37
38[flake8]
39# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020040# W503 line break before binary operator
41# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010042show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020043ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010044builtins = _
45exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build