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:
Eric Barrett 2019-03-28 11:55:14 -04:00
parent 88d5b2e3ba
commit 5549ecccc0
1 changed files with 2 additions and 3 deletions

View File

@ -30,9 +30,8 @@ commands =
[flake8]
# H102 Apache 2.0 license header not found
# B301 Python 3 does not include `.iter*` methods on dictionaries.
# B005 Using .strip() with multi-character strings is misleading the reader.
ignore = H102, B301, B005
# NOTE(Eric Barrett): H102 raises a false positive when using the SPDX license header
ignore = H102
# H106 Dont put vim configuration in source files (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).