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"
|
- "2.7"
|
||||||
install:
|
install:
|
||||||
- pip install -r test_requirements.txt --use-mirror
|
- pip install -r test_requirements.txt --use-mirror
|
||||||
- pip install pep8 --use-mirrors
|
- pip install flake8 --use-mirrors
|
||||||
- pip install -q . --use-mirrors
|
- pip install -q . --use-mirrors
|
||||||
before_script:
|
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
|
script: nosetests -d
|
@ -21,8 +21,6 @@ import functools
|
|||||||
from neutron.common import topics
|
from neutron.common import topics
|
||||||
from neutron.db import l3_db
|
from neutron.db import l3_db
|
||||||
from neutron.db import l3_rpc_base as l3_rpc
|
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 log as logging
|
||||||
from neutron.openstack.common import rpc
|
from neutron.openstack.common import rpc
|
||||||
from neutron.plugins.nicira.dhcp_meta import rpc as nvp_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'],
|
{'port_id': port_data['id'],
|
||||||
'net_id': port_data['network_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'])
|
LOG.warning(_("Port %s not found in NVP"), port_data['id'])
|
||||||
|
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -1,5 +1,3 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
|
17
tox.ini
17
tox.ini
@ -6,11 +6,9 @@ deps = -r{toxinidir}/test_requirements.txt
|
|||||||
commands = nosetests {posargs}
|
commands = nosetests {posargs}
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
|
||||||
[tox:jenkins]
|
[testenv:style]
|
||||||
|
deps = flake8
|
||||||
[testenv:pep8]
|
commands = flake8 akanda test setup.py
|
||||||
deps = pep8
|
|
||||||
commands = pep8 --repeat --show-source --ignore=E125 --exclude=.venv,.tox,dist,doc,*egg .
|
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = NOSE_WITH_COVERAGE=1
|
setenv = NOSE_WITH_COVERAGE=1
|
||||||
@ -18,7 +16,8 @@ setenv = NOSE_WITH_COVERAGE=1
|
|||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[flake8]
|
||||||
deps = pyflakes
|
ignore = E125
|
||||||
commands = pyflakes akanda
|
show-source = true
|
||||||
|
statistics = true
|
||||||
|
builtins = _
|
Loading…
Reference in New Issue
Block a user