Enable H405 PEP8 check
Fixes files with the PEP8 error: H405 multi line docstring summary not separated with an empty line and enables the PEP8 check in tox.ini. Change-Id: I632c89e2a1783be8305a8a8cea7ae9d3bb55b62c
This commit is contained in:
parent
832dbf0a79
commit
ade7f9ef2c
|
@ -335,7 +335,9 @@ def hash_file(file_like_object):
|
|||
|
||||
@contextlib.contextmanager
|
||||
def temporary_mutation(obj, **kwargs):
|
||||
"""Temporarily set the attr on a particular object to a given value then
|
||||
"""Temporarily change object attribute.
|
||||
|
||||
Temporarily set the attr on a particular object to a given value then
|
||||
revert when finished.
|
||||
|
||||
One use of this is to temporarily set the read_deleted flag on a context
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -47,7 +47,7 @@ commands = {posargs}
|
|||
[flake8]
|
||||
# E711: ignored because it is normal to use "column == None" in sqlalchemy
|
||||
# TODO(yuriyz): Analyze or fix the warnings blacklisted below
|
||||
ignore = E12,E111,E113,E131,E265,E711,F812,H305,H307,H405
|
||||
ignore = E12,E111,E113,E131,E265,E711,F812,H305,H307
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,*ironic/nova*
|
||||
|
||||
[hacking]
|
||||
|
|
Loading…
Reference in New Issue