pep8: enable H402 checks
Change-Id: If4a512ef31549f5611c9a462bef23ace12822757
This commit is contained in:
@@ -113,7 +113,7 @@ class InstanceNotFoundException(InspectorException):
|
|||||||
class Inspector(object):
|
class Inspector(object):
|
||||||
|
|
||||||
def inspect_instances(self):
|
def inspect_instances(self):
|
||||||
"""List the instances on the current host. """
|
"""List the instances on the current host."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def inspect_cpus(self, instance_name):
|
def inspect_cpus(self, instance_name):
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ cfg.CONF.register_opts(OPTS)
|
|||||||
|
|
||||||
|
|
||||||
class ImageBase(plugin.NotificationBase):
|
class ImageBase(plugin.NotificationBase):
|
||||||
"""Base class for image counting. """
|
"""Base class for image counting."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_exchange_topics(conf):
|
def get_exchange_topics(conf):
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class Connection(base.Connection):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, conf):
|
def __init__(self, conf):
|
||||||
"""Hbase Connection Initialization"""
|
"""Hbase Connection Initialization."""
|
||||||
opts = self._parse_connection_url(conf.database.connection)
|
opts = self._parse_connection_url(conf.database.connection)
|
||||||
opts['table_prefix'] = conf.table_prefix
|
opts['table_prefix'] = conf.table_prefix
|
||||||
|
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -40,7 +40,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E125,F403,H301,H302,H304,H306,H401,H402
|
ignore = E125,F403,H301,H302,H304,H306,H401
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests
|
||||||
show-source = True
|
show-source = True
|
||||||
|
|||||||
Reference in New Issue
Block a user