remove pep8 E122 exemption and correct style
This change removes the E122 exemption for pep8. E122 is "continuation line missing indentation or outdented" Change-Id: I4bd1e6c787648a3dfa69b514efeeff05996aabc1 Partial-Bug: 1329017
This commit is contained in:
parent
e3725e818a
commit
14fb3ec932
|
@ -123,13 +123,11 @@ def update_security_group_rules(cluster, spid, rules):
|
||||||
|
|
||||||
|
|
||||||
def update_security_profile(cluster, spid, name):
|
def update_security_profile(cluster, spid, name):
|
||||||
return nsxlib.do_request(HTTP_PUT,
|
return nsxlib.do_request(
|
||||||
nsxlib._build_uri_path(SECPROF_RESOURCE,
|
HTTP_PUT,
|
||||||
resource_id=spid),
|
nsxlib._build_uri_path(SECPROF_RESOURCE, resource_id=spid),
|
||||||
json.dumps({
|
json.dumps({"display_name": utils.check_and_truncate(name)}),
|
||||||
"display_name": utils.check_and_truncate(name)
|
cluster=cluster)
|
||||||
}),
|
|
||||||
cluster=cluster)
|
|
||||||
|
|
||||||
|
|
||||||
def delete_security_profile(cluster, spid):
|
def delete_security_profile(cluster, spid):
|
||||||
|
|
|
@ -1502,8 +1502,8 @@ class TestCiscoCsrIPsecDeviceDriverSyncStatuses(base.BaseTestCase):
|
||||||
u'ipsec_site_connections': {
|
u'ipsec_site_connections': {
|
||||||
u'1': {u'status': constants.ACTIVE,
|
u'1': {u'status': constants.ACTIVE,
|
||||||
u'updated_pending_status': True},
|
u'updated_pending_status': True},
|
||||||
u'2': {u'status': constants.DOWN,
|
u'2': {u'status': constants.DOWN,
|
||||||
u'updated_pending_status': True}}
|
u'updated_pending_status': True}}
|
||||||
},
|
},
|
||||||
{u'id': u'456',
|
{u'id': u'456',
|
||||||
u'updated_pending_status': True,
|
u'updated_pending_status': True,
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -40,7 +40,6 @@ commands =
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E122 continuation line missing indentation or outdented
|
|
||||||
# E125 continuation line does not distinguish itself from next logical line
|
# E125 continuation line does not distinguish itself from next logical line
|
||||||
# E126 continuation line over-indented for hanging indent
|
# E126 continuation line over-indented for hanging indent
|
||||||
# E128 continuation line under-indented for visual indent
|
# E128 continuation line under-indented for visual indent
|
||||||
|
@ -62,7 +61,7 @@ commands = {posargs}
|
||||||
# H405 multi line docstring summary not separated with an empty line
|
# H405 multi line docstring summary not separated with an empty line
|
||||||
# H904 Wrap long lines in parentheses instead of a backslash
|
# H904 Wrap long lines in parentheses instead of a backslash
|
||||||
# TODO(marun) H404 multi line docstring should start with a summary
|
# TODO(marun) H404 multi line docstring should start with a summary
|
||||||
ignore = E122,E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904
|
ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904
|
||||||
show-source = true
|
show-source = true
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject
|
||||||
|
|
Loading…
Reference in New Issue