Files
kuryr-libnetwork/tox.ini
Kirill Zaitsev 5cc622f42a Enforce multiple previously ignored pep8 rules
This commit removes almost all the pep8 rules from ignore list. Most of
these rules only required minor changes or were redundant and could be
enabled without any changes.

The only rule exclusion left active is E128 to keep the commit small
enough.

Change-Id: Iec4f00cff9e023515082caae525207054341b94b
2017-07-05 13:25:32 +03:00

76 lines
2.0 KiB
INI

[tox]
minversion = 2.3.1
envlist = py35,py27,pep8
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 =
pip install -U -c{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
find
commands = find . -type f -name "*.py[c|o]" -delete
ostestr '{posargs}'
[testenv:fullstack]
basepython = python2.7
setenv = OS_TEST_PATH=./kuryr_libnetwork/tests/fullstack
passenv = OS_*
[testenv:debug]
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:debug-py35]
basepython = python3.5
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
python setup.py test --coverage --testr-args='{posargs}' \
--coverage-package-name=kuryr_libnetwork
coverage report
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# E128 continuation line under-indented for visual indent
ignore = E128
show-source = true
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,releasenotes
[testenv:pylint]
deps =
{[testenv]deps}
pylint
commands =
pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron}
[hacking]
import_exceptions = kuryr.lib._i18n
local-check-factory = neutron_lib.hacking.checks.factory
[testenv:genconfig]
commands = {toxinidir}/tools/generate_config_file_samples.sh
[testenv:releasenotes]
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html