5c9e79e93f
This is a mechanically generated patch to ensure unit testing is in place for all of the Tested Runtimes for Train. See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Depends-On: https://review.opendev.org/669543 Change-Id: I3555792aff294a1ea533464ef78a1cc8bf545c82 Story: #2005924 Task: #34215
66 lines
1.9 KiB
INI
66 lines
1.9 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py27,py37,pep8
|
|
|
|
[testenv]
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:cover]
|
|
basepython = python3
|
|
setenv =
|
|
PYTHON=coverage run --source pycadf --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:debug]
|
|
basepython = python3
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# H405: Multi line docstrings should start with a one line summary followed by
|
|
# an empty line.
|
|
# D100: Missing docstring in public module
|
|
# D101: Missing docstring in public class
|
|
# D102: Missing docstring in public method
|
|
# D103: Missing docstring in public function
|
|
# D104: Missing docstring in public package
|
|
# D105: Missing docstring in magic method
|
|
# D200: One-line docstring should fit on one line with quotes
|
|
# D202: No blank lines allowed after function docstring
|
|
# D203: 1 blank required before class docstring
|
|
# D204: 1 blank line required after class docstring
|
|
# D205: 1 blank line required between summary line and description
|
|
# D208: Docstring is over-indented
|
|
# D400: First line should end with a period
|
|
# D401: First line should be in imperative mood
|
|
ignore = H405,D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D208,D400,D401
|
|
exclude = .tox,dist,doc,*.egg,build
|
|
|
|
[testenv:lower-constraints]
|
|
basepython = python3
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|