blob: da879bfad7710349737712d7a623f0458ff9877a [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]
lkuchlan88452b32020-02-20 11:52:48 +020023commands =
24 flake8 {posargs}
25 check-uuid --package manila_tempest_tests
26
27[testenv:uuidgen]
28commands = check-uuid --fix --package manila_tempest_tests
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010029
30[testenv:venv]
31commands = {posargs}
32
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010033[testenv:docs]
Andreas Jaegera3fef5c2020-04-23 10:00:19 +020034commands = sphinx-build -W -b html doc/source doc/build/html
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010035
36[testenv:releasenotes]
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010037commands =
38 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
39
40[testenv:debug]
41commands = oslo_debug_helper {posargs}
42
43[flake8]
44# E123, E125 skipped as they are invalid PEP-8.
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020045# W503 line break before binary operator
46# W504 line break after binary operator
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010047show-source = True
Andreas Jaeger0cb685b2020-04-01 13:38:38 +020048ignore = E123,E125,W503,W504
Raissa Sarmento3dd627b2017-09-27 12:18:44 +010049builtins = _
50exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
lkuchlan1d1461d2020-08-04 11:19:11 +030051import-order-style = pep8
52application-import-names = manila_tempest_tests