Client components for Octavia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
4.3 KiB

minversion = 2.5.0
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
basepython = python3
usedevelop = True
whitelist_externals =
install_command = pip install {opts} {packages}
setenv =
deps =
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
stestr slowest
commands = flake8
# RST linter
doc8 doc/source octaviaclient HACKING.rst README.rst \
# Run security linter
{toxinidir}/tools/ --pylint {posargs}
whitelist_externals =
commands = {posargs}
setenv =
PYTHON=coverage run --source octaviaclient --parallel-mode
whitelist_externals =
commands =
find octaviaclient -type f -name "*.pyc" -delete
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --fail-under=90 --skip-covered
deps =
commands =
rm -rf doc/build/html
sphinx-build -W -b html doc/source doc/build/html
deps = {[testenv:docs]deps}
whitelist_externals =
commands =
rm -rf doc/build/pdf
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
deps =
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
passenv = OS_*
commands =
pip install -q -U ipdb
oslo_debug_helper -t octaviaclient/tests {posargs}
# [H104]: Empty file with only comments
# [W504]: Line break after binary operator
ignore = H104,W504
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
# [H106]: Don't put vim configuration in source files
# [H203]: Use assertIs(Not)None to check for None
# [H204]: Use assert(Not)Equal to check for equality
# [H205]: Use assert(Greater|Less)(Equal) for comparison
# [H904]: Delay string interpolations at logging calls
envdir = {toxworkdir}/shared
commands = bash -c "find {toxinidir} \
-not \( -type d -name .tox\* -prune \) \
-not \( -type d -name .venv\* -prune \) \
-type f \
-name \*.sh \
# [E005]: File does not begin with #! or have a .sh prefix
# [E006]: Check for lines longer than 79 columns
# [E042]: Local declaration hides errors
# [E043]: Arithmetic compound has inconsistent return semantics
-print0 | xargs -0 bashate -v -iE006 -eE005,E042,E043"
extension =
O316 = checks:assert_true_instance
O318 = checks:assert_equal_or_not_none
O323 = checks:assert_equal_true_or_false
O324 = checks:no_mutable_default_args
O338 = checks:assert_equal_in
O339 = checks:no_log_warn
O340 = checks:no_xrange
O341 = checks:no_translate_logs
O342 = checks:check_raised_localized_exceptions
O343 = checks:check_no_basestring
O345 = checks:check_no_eventlet_imports
O346 = checks:check_line_continuation_no_backslash
paths =
deps =
deps =
whitelist_externals = sh
commands =
sh -c '{envdir}/src/openstack-requirements/playbooks/files/ --req {envdir}/src/openstack-requirements --local {toxinidir} master'
commands = bandit -r octaviaclient -ll -ii -x tests