Correct failures for check E122
The E122 "continuation line missing indentation or outdented" rule was failing and ignored. Now it's enforced. Change-Id: Ic0d457bb597fad91da1afd3007563e0bd97f9fbb
This commit is contained in:
parent
a31ed5ca4f
commit
f2ee535039
|
@ -767,10 +767,11 @@ class AuthProtocol(object):
|
|||
def _fmt_msg(env):
|
||||
msg = ('user: user_id %s, project_id %s, roles %s '
|
||||
'service: user_id %s, project_id %s, roles %s' % (
|
||||
env.get('HTTP_X_USER_ID'), env.get('HTTP_X_PROJECT_ID'),
|
||||
env.get('HTTP_X_ROLES'), env.get('HTTP_X_SERVICE_USER_ID'),
|
||||
env.get('HTTP_X_SERVICE_PROJECT_ID'),
|
||||
env.get('HTTP_X_SERVICE_ROLES')))
|
||||
env.get('HTTP_X_USER_ID'), env.get('HTTP_X_PROJECT_ID'),
|
||||
env.get('HTTP_X_ROLES'),
|
||||
env.get('HTTP_X_SERVICE_USER_ID'),
|
||||
env.get('HTTP_X_SERVICE_PROJECT_ID'),
|
||||
env.get('HTTP_X_SERVICE_ROLES')))
|
||||
return msg
|
||||
|
||||
self._token_cache.initialize(env)
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -32,11 +32,10 @@ downloadcache = ~/cache/pip
|
|||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
[flake8]
|
||||
# E122: continuation line missing indentation or outdented
|
||||
# F821: undefined name
|
||||
# H304: no relative imports
|
||||
# H405: multi line docstring summary not separated with an empty line
|
||||
ignore = E122,F821,H304,H405
|
||||
ignore = F821,H304,H405
|
||||
show-source = True
|
||||
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*
|
||||
|
||||
|
|
Loading…
Reference in New Issue