Enable more pep8 checks

Change-Id: Ib8509391d4c4521e18f0e980003c5e94c7ba2f54
This commit is contained in:
Angus Salkeld
2013-05-23 10:13:01 +10:00
parent bdac572db8
commit c272dc7367
3 changed files with 4 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ def do_alarm_show(cc, args={}):
@utils.arg('-a', '--alarm_id', metavar='<ALARM_ID>',
help='ID of the alarm to show.')
def do_alarm_delete(cc, args={}):
'''Delete an alarm'''
'''Delete an alarm.'''
if args.alarm_id is None:
raise exc.CommandError('Alarm ID not provided (-a <alarm id>)')
try:

View File

@@ -53,8 +53,7 @@ class FakeAPI(object):
class FakeResponse(object):
def __init__(self, headers, body=None, version=None):
"""
:param headers: dict representing HTTP response headers
""":param headers: dict representing HTTP response headers
:param body: file-like object
"""
self.headers = headers

View File

@@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = {posargs}
[flake8]
ignore = E12,E711,E721,E712,F,H
ignore = E12,E711,E721,E712,F,H302
show-source = True
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools