From b4fd53a15e7f9a1bacc6dcb67ab37f69e7eabd2e Mon Sep 17 00:00:00 2001 From: Eric Barrett Date: Wed, 3 Apr 2019 16:12:05 -0400 Subject: [PATCH] Ignore New Flake8 Bugbear Errors Flake8 is failing due to bugbear updating with new error codes: B009: Do not call getattr with a constant attribute value B010: Do not call setattr with a constant attribute value Ignore them for now Lock down bugbear version to prevent further Zuul issues Change-Id: Idf4f60b51a3362608917dfaf443b0444e6aa685c Signed-off-by: Eric Barrett --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index c940ab1a..738d6eb9 100644 --- a/tox.ini +++ b/tox.ini @@ -68,10 +68,12 @@ commands = # - bugbear - # B006 Do not use mutable data structures for argument defaults. (python3) # B008 Do not perform calls in argument defaults. The call is performed only once at function definition time. +# B009: Do not call getattr with a constant attribute value +# B010: Do not call setattr with a constant attribute value ignore= E402, H102,H104,H105,H106,H306,H401,H403,H404,H405,H501, F811,F821, - B006,B008 + B006,B008,B009,B010 # Enable checks which are off by default # H106 Don’t put vim configuration in source files (off by default). SHOULD BE ENABLED. # H203 Use assertIs(Not)None to check for None (off by default). @@ -85,7 +87,7 @@ usedevelop = False skip_install = True deps = hacking - flake8-bugbear + flake8-bugbear<=19.3.0 flake8 < 3.6.0 commands = flake8