[tox] minversion = 1.6 envlist = pep8,py27,py35 skipsdist = True [testenv] # Note the hash seed is set to 0 until neutron can be tested with a # random hash seed successfully. setenv = VIRTUAL_ENV={envdir} PYTHONHASHSEED=0 PYTHONWARNINGS=default::DeprecationWarning usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = sh commands = ostestr '{posargs}' # sh tools/pretty_tox.sh '{posargs}' [testenv:pep8] commands = flake8 neutron-db-manage --subproject dragonflow check_migration [testenv:venv] commands = {posargs} [flake8] # E126 continuation line over-indented for hanging indent # H404 multi line docstring should start with a summary # H405 multi line docstring summary not separated with an empty line # N530 Direct neutron imports not allowed # N531 log message does not translate ignore = E126,H404,H405,N530,N531 # H904: Delay string interpolations at logging calls # H203: Use assertIs(Not)None to check for None enable-extensions=H904,H203 show-source = true exclude = ./.*,dist,doc,build,tools [testenv:pylint] deps = {[testenv]deps} pylint commands = pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron} [hacking] #import_exceptions = wan_qos._i18n local-check-factory = neutron_lib.hacking.checks.factory