diff --git a/heatclient/common/http.py b/heatclient/common/http.py index fad66276..1fbcdcdc 100644 --- a/heatclient/common/http.py +++ b/heatclient/common/http.py @@ -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): diff --git a/heatclient/common/template_utils.py b/heatclient/common/template_utils.py index 6d58b990..4fa72d86 100644 --- a/heatclient/common/template_utils.py +++ b/heatclient/common/template_utils.py @@ -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') diff --git a/heatclient/exc.py b/heatclient/exc.py index b7649427..ea7d5758 100644 --- a/heatclient/exc.py +++ b/heatclient/exc.py @@ -80,8 +80,7 @@ class HTTPMultipleChoices(HTTPException): { 'name': self.__class__.__name__, 'code': self.code, - 'details': self.details - }) + 'details': self.details}) class BadRequest(HTTPException): diff --git a/heatclient/shell.py b/heatclient/shell.py index 16353611..019df3ec 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -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) diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index 4bfa4e9b..307ef7e4 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -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, diff --git a/tox.ini b/tox.ini index 9f3b198f..54ed0d1b 100644 --- a/tox.ini +++ b/tox.ini @@ -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