blob: 640880de5588adeb51dd4cc688262d35b4ccbb95 [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
pengyueshenge2eb90b2019-09-24 16:03:31 +08009install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010010setenv =
11 VIRTUAL_ENV={envdir}
12 PYTHONWARNINGS=default::DeprecationWarning
13 OS_STDOUT_CAPTURE=1
14 OS_STDERR_CAPTURE=1
15 OS_TEST_TIMEOUT=60
16deps = -r{toxinidir}/requirements.txt
17 -r{toxinidir}/test-requirements.txt
Raissa Sarmento80f5fbf2017-10-16 14:38:36 +010018# commands = python setup.py test --slowest --testr-args='{posargs}'
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010019
20[testenv:pep8]
21commands = flake8 {posargs}
22
23[testenv:venv]
24commands = {posargs}
25
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010026[testenv:docs]
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020027commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010028
29[testenv:releasenotes]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010030commands =
31 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
32
33[testenv:debug]
34commands = oslo_debug_helper {posargs}
35
36[flake8]
37# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020038# W503 line break before binary operator
39# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010040show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020041ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010042builtins = _
43exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build