Enable pep8 E126 test

Enable E126 continuation line over-indented for hanging indent.

Change-Id: I12ca2d8d610574dfcd528b0e613ec0328f4fb45e
This commit is contained in:
ricolin 2015-11-16 00:42:28 +08:00
parent ec2530b975
commit 978eeb3994
6 changed files with 8 additions and 15 deletions

View File

@ -215,8 +215,7 @@ class HTTPClient(object):
{
'option': '--include-password',
'var': 'HEAT_INCLUDE_PASSWORD=1',
'content': resp.content
})
'content': resp.content})
elif 400 <= resp.status_code < 600:
raise exc.from_response(resp)
elif resp.status_code in (301, 302, 305):

View File

@ -49,8 +49,7 @@ def get_template_contents(template_file=None, template_url=None,
{
'arg1': '--template-file',
'arg2': '--template-url',
'arg3': '--template-object'
})
'arg3': '--template-object'})
if not tpl:
raise exc.CommandError(_('Could not fetch template from %s')

View File

@ -80,8 +80,7 @@ class HTTPMultipleChoices(HTTPException):
{
'name': self.__class__.__name__,
'code': self.code,
'details': self.details
})
'details': self.details})
class BadRequest(HTTPException):

View File

@ -137,8 +137,7 @@ class HeatShell(object):
'%(arg)s. Defaults to %(value)s.') %
{
'arg': '--os-tenant-id',
'value': 'env[OS_PROJECT_ID]'
}))
'value': 'env[OS_PROJECT_ID]'}))
parser.add_argument('--os_project_id',
help=argparse.SUPPRESS)
@ -150,8 +149,7 @@ class HeatShell(object):
'%(arg)s. Defaults to %(value)s.') %
{
'arg': '--os-tenant-name',
'value': 'env[OS_PROJECT_NAME]'
}))
'value': 'env[OS_PROJECT_NAME]'}))
parser.add_argument('--os_project_name',
help=argparse.SUPPRESS)

View File

@ -113,8 +113,7 @@ def do_stack_create(hc, args):
'please use %(arg2)s instead'),
{
'arg1': '-c/--create-timeout',
'arg2': '-t/--timeout'
})
'arg2': '-t/--timeout'})
if args.pre_create:
hooks_to_env(env, args.pre_create, 'pre-create')
@ -208,8 +207,7 @@ def do_stack_adopt(hc, args):
'please use %(arg2)s instead'),
{
'arg1': '-c/--create-timeout',
'arg2': '-t/--timeout'
})
'arg2': '-t/--timeout'})
fields = {
'stack_name': args.name,

View File

@ -42,7 +42,7 @@ commands=
downloadcache = ~/cache/pip
[flake8]
ignore = E123,E126
ignore = E123
show-source = True
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
max-complexity=20