Switch to flake8
Change-Id: I29ad27eca617e9ca801024d598d665cf1a2728d0 Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
This commit is contained in:
parent
6e3225013f
commit
68ee539e40
@ -3,8 +3,8 @@ python:
|
||||
- "2.7"
|
||||
install:
|
||||
- pip install -r test_requirements.txt --use-mirror
|
||||
- pip install pep8 --use-mirrors
|
||||
- pip install flake8 --use-mirrors
|
||||
- pip install -q . --use-mirrors
|
||||
before_script:
|
||||
- pep8 --repeat --show-source --ignore=E125 --statistics --exclude=dist,doc,*egg .
|
||||
- flake8 --show-source --ignore=E125 --statistics akanda test setup.py
|
||||
script: nosetests -d
|
@ -21,8 +21,6 @@ import functools
|
||||
from neutron.common import topics
|
||||
from neutron.db import l3_db
|
||||
from neutron.db import l3_rpc_base as l3_rpc
|
||||
from neutron.extensions import portsecurity as psec
|
||||
from neutron.extensions import securitygroup as ext_sg
|
||||
from neutron.openstack.common import log as logging
|
||||
from neutron.openstack.common import rpc
|
||||
from neutron.plugins.nicira.dhcp_meta import rpc as nvp_rpc
|
||||
@ -201,7 +199,7 @@ class NvpPluginV2(nvp.NvpPluginV2):
|
||||
{'port_id': port_data['id'],
|
||||
'net_id': port_data['network_id']})
|
||||
|
||||
except q_exc.NotFound:
|
||||
except nvp.q_exc.NotFound:
|
||||
LOG.warning(_("Port %s not found in NVP"), port_data['id'])
|
||||
|
||||
|
||||
|
17
tox.ini
17
tox.ini
@ -6,11 +6,9 @@ deps = -r{toxinidir}/test_requirements.txt
|
||||
commands = nosetests {posargs}
|
||||
sitepackages = False
|
||||
|
||||
[tox:jenkins]
|
||||
|
||||
[testenv:pep8]
|
||||
deps = pep8
|
||||
commands = pep8 --repeat --show-source --ignore=E125 --exclude=.venv,.tox,dist,doc,*egg .
|
||||
[testenv:style]
|
||||
deps = flake8
|
||||
commands = flake8 akanda test setup.py
|
||||
|
||||
[testenv:cover]
|
||||
setenv = NOSE_WITH_COVERAGE=1
|
||||
@ -18,7 +16,8 @@ setenv = NOSE_WITH_COVERAGE=1
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:pyflakes]
|
||||
deps = pyflakes
|
||||
commands = pyflakes akanda
|
||||
|
||||
[flake8]
|
||||
ignore = E125
|
||||
show-source = true
|
||||
statistics = true
|
||||
builtins = _
|
Loading…
Reference in New Issue
Block a user