Enable Bugbear Errors in Flake8
Flake8 currently ignores the following bugbear errors: B005: Using .strip() with multi-character strings misleads the reader B301: Python 3 does not include `.iter*` methods on dictionaries. Enable them for more thorough testing of code Change-Id: I34da4ac5d107e89b26828d53c84fa2167143b1e7 Story: 2004515 Task: 30241 Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
This commit is contained in:
parent
88d5b2e3ba
commit
5549ecccc0
5
tox.ini
5
tox.ini
@ -30,9 +30,8 @@ commands =
|
|||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# H102 Apache 2.0 license header not found
|
# H102 Apache 2.0 license header not found
|
||||||
# B301 Python 3 does not include `.iter*` methods on dictionaries.
|
# NOTE(Eric Barrett): H102 raises a false positive when using the SPDX license header
|
||||||
# B005 Using .strip() with multi-character strings is misleading the reader.
|
ignore = H102
|
||||||
ignore = H102, B301, B005
|
|
||||||
# H106 Don’t put vim configuration in source files (off by default).
|
# H106 Don’t put vim configuration in source files (off by default).
|
||||||
# H203 Use assertIs(Not)None to check for None (off by default).
|
# H203 Use assertIs(Not)None to check for None (off by default).
|
||||||
# H904 Delay string interpolations at logging calls (off by default).
|
# H904 Delay string interpolations at logging calls (off by default).
|
||||||
|
Loading…
Reference in New Issue
Block a user