Files
5959bbfbbfb8365287ce17cc4bf15033f9afd8c6
networking-bgpvpn /tox.ini
Thomas Morin 5959bbfbbf add pylint in tox pep8 task
This change updates tox.ini so that the pep8 jobs
does a pylint check of the source code.
This the same as done in many other projects, in particular
.pylintrc is based on the one in neutron.
Change-Id: Ib46cb485345896c4f5eabd3b1d705200b0640963
Depends-On: I0cab12f2775f4f803d2eeee4cc6d6f06da5d4b7a
2015年10月06日 14:37:40 +02:00

43 lines
1.0 KiB
INI

[tox]
minversion = 1.6
envlist = py33,py34,py26,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
deps =
{[testenv]deps}
pylint
commands =
flake8
pylint --rcfile=.pylintrc --output-format=colorized {posargs:networking_bgpvpn}
neutron-db-manage --subproject networking-bgpvpn --database-connection sqlite:// check_migration
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build