Neutron plugins/drivers for VPP management.
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.
 
 

91 lines
2.6 KiB

[tox]
minversion = 3.1.1
envlist = py36,py37,pep8,mypy
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
ignore_basepython_conflict = True
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
PYTHONWARNINGS=ignore::DeprecationWarning,default::DeprecationWarning:networking_vpp
OS_TEST_PATH=./networking_vpp/tests/unit
PBR_VERSION=0.1.1
passenv = TRACE_FAILONLY
PYTHONPATH
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}/requirements.txt
-r{toxinidir}/test-requirements.txt
coverage
whitelist_externals = /bin/echo
commands =
echo "Entering directory `{toxinidir}'"
stestr run {posargs}
[testenv:pep8]
commands =
echo "Entering directory `{toxinidir}'"
flake8
[testenv:mypy]
deps =
{[testenv]deps}
mypy>=0.782,<1
setenv =
{[testenv]setenv}
MYPYPATH={toxinidir}
commands =
echo "Entering directory `{toxinidir}'"
mypy --config-file {toxinidir}/mypy.cfg -p networking_vpp
[testenv:venv]
commands =
echo "Entering directory `{toxinidir}'"
{posargs}
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source networking_vpp --parallel-mode
commands =
echo "Entering directory `{toxinidir}'"
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
commands =
echo "Entering directory `{toxinidir}'"
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:debug]
commands =
echo "Entering directory `{toxinidir}'"
oslo_debug_helper {posargs}
[hacking]
local-check-factory = neutron_lib.hacking.checks.factory
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
# TODO(ijw): N530 wants to come off of this list, compat.py should
# deal with it
# N531 deals with translation hints and is contraindicated by newer
# versions, but we sometimes want to work with older versions.
# Excluding 531 keeps them sane.
# We don'y care i there are CRs before or after binary operators
# (though it's hard to pass both simultaneously!) - W503/4 are off for
# this reason.
# E402 - imports at top of files - spoils the compat file and messes
# up eventlet patching
# H301 is one import per line, which is overly restrictive
ignore = E123,E125,N530,N531,W503,W504, E402, H301
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.tmp