Merge "remove pep8 E122 exemption and correct style"
This commit is contained in:
commit
24718e6f17
@ -123,12 +123,10 @@ 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)
|
||||||
|
|
||||||
|
|
||||||
|
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…
x
Reference in New Issue
Block a user