Fix flake8 E265 errors

Fix E265 error and start enforcing it.

Trivialfix

Change-Id: I947599c95c92376657eddaace190b728b8987a57
This commit is contained in:
Brian Haley 2018-10-09 19:55:44 -04:00
parent ae328b923a
commit 8aaa73ff53
2 changed files with 2 additions and 3 deletions

View File

@ -69,7 +69,7 @@ def wait_until_true(predicate, timeout=60, sleep=1, exception=None):
eventlet.sleep(sleep) eventlet.sleep(sleep)
except eventlet.Timeout: except eventlet.Timeout:
if exception is not None: if exception is not None:
#pylint: disable=raising-bad-type # pylint: disable=raising-bad-type
raise exception raise exception
raise WaitTimeout("Timed out after %d seconds" % timeout) raise WaitTimeout("Timed out after %d seconds" % timeout)

View File

@ -56,10 +56,9 @@ commands = oslo_debug_helper -t neutron_tempest_plugin/ {posargs}
# 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
# E129 visually indented line with same indent as next logical line # E129 visually indented line with same indent as next logical line
# E265 block comment should start with '# '
# H405 multi line docstring summary not separated with an empty line # H405 multi line docstring summary not separated with an empty line
# N530 direct neutron imports not allowed # N530 direct neutron imports not allowed
ignore = E125,E126,E128,E129,E265,H405,N530 ignore = E125,E126,E128,E129,H405,N530
# H106: Don't put vim configuration in source files # H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None # H203: Use assertIs(Not)None to check for None
# H904: Delay string interpolations at logging calls # H904: Delay string interpolations at logging calls