Enable more pep8 checks
Change-Id: Ib8509391d4c4521e18f0e980003c5e94c7ba2f54
This commit is contained in:
@@ -120,7 +120,7 @@ def do_alarm_show(cc, args={}):
|
|||||||
@utils.arg('-a', '--alarm_id', metavar='<ALARM_ID>',
|
@utils.arg('-a', '--alarm_id', metavar='<ALARM_ID>',
|
||||||
help='ID of the alarm to show.')
|
help='ID of the alarm to show.')
|
||||||
def do_alarm_delete(cc, args={}):
|
def do_alarm_delete(cc, args={}):
|
||||||
'''Delete an alarm'''
|
'''Delete an alarm.'''
|
||||||
if args.alarm_id is None:
|
if args.alarm_id is None:
|
||||||
raise exc.CommandError('Alarm ID not provided (-a <alarm id>)')
|
raise exc.CommandError('Alarm ID not provided (-a <alarm id>)')
|
||||||
try:
|
try:
|
||||||
|
@@ -53,8 +53,7 @@ class FakeAPI(object):
|
|||||||
|
|
||||||
class FakeResponse(object):
|
class FakeResponse(object):
|
||||||
def __init__(self, headers, body=None, version=None):
|
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
|
:param body: file-like object
|
||||||
"""
|
"""
|
||||||
self.headers = headers
|
self.headers = headers
|
||||||
|
4
tox.ini
4
tox.ini
@@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E12,E711,E721,E712,F,H
|
ignore = E12,E711,E721,E712,F,H302
|
||||||
show-source = True
|
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
|
||||||
|
Reference in New Issue
Block a user