From 5549ecccc097d9eb39d846a428ba3f39c949356e Mon Sep 17 00:00:00 2001 From: Eric Barrett Date: Thu, 28 Mar 2019 11:55:14 -0400 Subject: [PATCH] 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 --- tox.ini | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 13781d7a..08833f5e 100644 --- a/tox.ini +++ b/tox.ini @@ -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 Don’t 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).