Skip to content

Commit fbe6678

Browse files
committed
Enable bugbear checks
1 parent b9f0d56 commit fbe6678

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ select = [
3131
"W", # pycodestyle
3232
"I", # isort
3333
"RUF022", # Sort __all__
34+
"C4", # comprehensions
35+
"B", # bugbear
3436
]
3537
extend-select = [
3638
"RUF100", # Warn about unused noqa

python/lsst/sconsUtils/builders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def ProductDir(env, product):
292292

293293
global _productDirs
294294
try:
295-
_productDirs
295+
_productDirs # noqa: B018
296296
except Exception:
297297
try:
298298
_productDirs = eupsForScons.productDir(eupsenv=eupsForScons.getEups())

0 commit comments

Comments
 (0)