Cleanup flake8 warnings related to file comments

The following flake8 errors are no longer suppressed:
 E116 unexpected indentation (comment)
 E261 at least two spaces before inline comment
 E265 block comment should start with '# '

Story: 2003499
Task: 26408
Change-Id: I17d8bbf9c1511a58a7322606f41bfbb01a841953
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2018-09-12 10:11:34 -05:00
parent 19a881ee2d
commit 6cf70c6c51
4 changed files with 96 additions and 99 deletions

View File

@ -26,7 +26,6 @@ commands =
[flake8] [flake8]
# Temporarily ignoring these warnings # Temporarily ignoring these warnings
# E116 unexpected indentation (comment)
# E121 continuation line under-indented for hanging indent # E121 continuation line under-indented for hanging indent
# E122 continuation line missing indentation or outdented # E122 continuation line missing indentation or outdented
# E123 closing bracket does not match indentation of opening bracket # E123 closing bracket does not match indentation of opening bracket
@ -35,8 +34,6 @@ commands =
# E127 continuation line over-indented for visual indent # E127 continuation line over-indented for visual 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
# E261 at least two spaces before inline comment
# E265 block comment should start with '# '
# E501 line too long # E501 line too long
# E712 comparison to bool should be reworded # E712 comparison to bool should be reworded
# - hacking codes - # - hacking codes -
@ -51,7 +48,7 @@ commands =
# - flake8 codes - # - flake8 codes -
# F401 '<module>' imported but unused # F401 '<module>' imported but unused
# F821 undefined name 'unicode' (python3 specific) # F821 undefined name 'unicode' (python3 specific)
ignore = E116,E121,E122,E123,E124,E126,E127,E128,E129,E261,E265,E501,E712, ignore = E121,E122,E123,E124,E126,E127,E128,E129,E501,E712,
H102,H104,H301,H306,H401,H404,H405,H501, H102,H104,H301,H306,H401,H404,H405,H501,
F401,F821, F401,F821,
# H106 Dont put vim configuration in source files (off by default). # H106 Dont put vim configuration in source files (off by default).