Dynamic routing services for OpenStack Neutron.
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.

128 lines
4.0 KiB

envlist = py3,pep8,pylint
minversion = 3.1.1
skipsdist = True
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command =pip install {opts} {packages}
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
whitelist_externals =
commands =
find . -type f -name "*.py[c|o]" -delete
find . -type l -name "*.py[c|o]" -delete
find . -depth -path "*/__pycache__*" -delete
stestr run {posargs}
# there is also secret magic in stestr which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
setenv = OS_TEST_PATH=./neutron_dynamic_routing/tests/functional
commands =
stestr run {posargs}
stestr slowest
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
commands =
neutron-db-manage --subproject neutron-dynamic-routing --database-connection sqlite:// check_migration
setenv =
PYTHON=coverage run --source neutron_dynamic_routing --parallel-mode
commands =
stestr run --no-subunit-trace {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
commands = {posargs}
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
commands =
sphinx-build -W -b html doc/source doc/build/html
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
whitelist_externals =
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E265 block comment should start with ‘# ‘
# H405 multi line docstring summary not separated with an empty line
# TODO(marun) H404 multi line docstring should start with a summary
# N530 direct neutron imports not allowed
# TODO(ihrachys) -- reenable N537 when new neutron-lib release is available
# N537 Log messages should not be translated
# H106 Don’t put vim configuration in source files
# H203 Use assertIs(Not)None to check for None
# W504 line break after binary operator
# (W503 and W504 are incompatible and we need to choose one of them.
# Existing codes follows W503, so we disable W504.)
ignore = E125,E126,E128,E129,E265,H404,H405,N530,N537,W504
show-source = true
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
import-order-style = pep8
deps =
commands =
pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_dynamic_routing}
import_exceptions = neutron_dynamic_routing._i18n
local-check-factory = neutron_lib.hacking.checks.factory
commands = {toxinidir}/tools/generate_config_file_samples.sh
commands = oslopolicy-sample-generator --config-file=etc/oslo-policy-generator/policy.conf
# run locally (not in the gate) using editable mode
# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
commands =
pip install -q -e "git+https://opendev.org/openstack/neutron#egg=neutron"
commands =
deps =
commands =