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 <eric.barrett@windriver.com>
This commit is contained in:
parent
ac2ec50d86
commit
b4fd53a15e
6
tox.ini
6
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
|
||||
|
|
Loading…
Reference in New Issue