From ca77a7a093ab090367ebf2f8352585905301022f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 19 Jun 2013 14:29:39 +0200 Subject: [PATCH] pep8: enable H402 checks Change-Id: If4a512ef31549f5611c9a462bef23ace12822757 --- ceilometer/compute/virt/inspector.py | 2 +- ceilometer/image/notifications.py | 2 +- ceilometer/storage/impl_hbase.py | 2 +- tox.ini | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ceilometer/compute/virt/inspector.py b/ceilometer/compute/virt/inspector.py index 04e6c35f4..2071819d6 100644 --- a/ceilometer/compute/virt/inspector.py +++ b/ceilometer/compute/virt/inspector.py @@ -113,7 +113,7 @@ class InstanceNotFoundException(InspectorException): class Inspector(object): def inspect_instances(self): - """List the instances on the current host. """ + """List the instances on the current host.""" raise NotImplementedError() def inspect_cpus(self, instance_name): diff --git a/ceilometer/image/notifications.py b/ceilometer/image/notifications.py index eba943bf4..cfee9aab3 100644 --- a/ceilometer/image/notifications.py +++ b/ceilometer/image/notifications.py @@ -35,7 +35,7 @@ cfg.CONF.register_opts(OPTS) class ImageBase(plugin.NotificationBase): - """Base class for image counting. """ + """Base class for image counting.""" @staticmethod def get_exchange_topics(conf): diff --git a/ceilometer/storage/impl_hbase.py b/ceilometer/storage/impl_hbase.py index d16f9e6e8..d7b5d5882 100644 --- a/ceilometer/storage/impl_hbase.py +++ b/ceilometer/storage/impl_hbase.py @@ -88,7 +88,7 @@ class Connection(base.Connection): """ def __init__(self, conf): - """Hbase Connection Initialization""" + """Hbase Connection Initialization.""" opts = self._parse_connection_url(conf.database.connection) opts['table_prefix'] = conf.table_prefix diff --git a/tox.ini b/tox.ini index 7cce351c5..583f7609c 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ deps = -r{toxinidir}/requirements.txt commands = {posargs} [flake8] -ignore = E125,F403,H301,H302,H304,H306,H401,H402 +ignore = E125,F403,H301,H302,H304,H306,H401 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests show-source = True