Enable Flake8 Whitespace Errors
Flake8 currently ignores a number of whitespace related errors: E201: whitespace after '[' E202: whitespace before '}' E203: whitespace before ':' E211: whitespace before '(' E221: multiple spaces before operator E222: multiple spaces after operator E225: missing whitespace around operator E226: missing whitespace around arithmetic operator E231: missing whitespace after ',' E251: unexpected spaces around keyword / parameter equals E261: at least two spaces before inline comment Enable them for more thorough testing of code Change-Id: Id03f36070b8f16694a12f4d36858680b6e00d530 Story: 2004515 Task: 30076 Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
This commit is contained in:
parent
a2b1bc6f05
commit
11cc2a21bb
13
tox.ini
13
tox.ini
@ -44,17 +44,6 @@ commands =
|
||||
# E126 continuation line over-indented for hanging indent
|
||||
# E127 continuation line over-indented for visual indent
|
||||
# E128 continuation line under-indented for visual indent
|
||||
# E201 whitespace after '['
|
||||
# E202 whitespace before '}'
|
||||
# E203 whitespace before ':'
|
||||
# E211 whitespace before '('
|
||||
# E221 multiple spaces before operator
|
||||
# E222 multiple spaces after operator
|
||||
# E225 missing whitespace around operator
|
||||
# E226 missing whitespace around arithmetic operator
|
||||
# E231 missing whitespace after ','
|
||||
# E251 unexpected spaces around keyword / parameter equals
|
||||
# E261 at least two spaces before inline comment
|
||||
# E265 block comment should start with '# '
|
||||
# E266 too many leading '#' for block comment
|
||||
# E302 expected 2 blank lines, found 1
|
||||
@ -86,7 +75,7 @@ commands =
|
||||
# B301 Python 3 does not include `.iter*` methods on dictionaries.
|
||||
# F series
|
||||
# F401 'module' imported but unused
|
||||
ignore = E121,E123,E124,E125,E126,E127,E128,E201,E202,E203,E211,E221,E222,E225,E226,E231,E251,E261,E265,E266,
|
||||
ignore = E121,E123,E124,E125,E126,E127,E128,E265,E266,
|
||||
E302,E303,E305,E402,E501,E722,E741,
|
||||
H101,H102,H104,H201,H238,H237,H306,H401,H404,H405,
|
||||
W191,W291,W391,W503,
|
||||
|
Loading…
Reference in New Issue
Block a user