Skip to content

Commit c2e277c

Browse files
Enforce ruff/flake8-bugbear rules (B)
1 parent 550e48f commit c2e277c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

pyproject.toml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,16 +283,20 @@ exclude = [
283283

284284
[tool.ruff.lint]
285285
# all rules can be found here: https://beta.ruff.rs/docs/rules/
286-
select = ["E", "F", "W", "I"]
287-
ignore = [
288-
# space before : (needed for how black formats slicing)
289-
"E203",
290-
# use `is` and `is not` for type comparisons
291-
"E721",
292-
# do not assign a lambda expression, use a def
293-
"E731",
294-
# do not use variables named 'l', 'O', or 'I'
295-
"E741",
286+
select = ["E", "F", "W", "B", "I"]
287+
ignore=[
288+
# space before : (needed for how black formats slicing)
289+
"E203",
290+
# use `is` and `is not` for type comparisons
291+
"E721",
292+
# do not assign a lambda expression, use a def
293+
"E731",
294+
# do not use variables named 'l', 'O', or 'I'
295+
"E741",
296+
"B017",
297+
"B018",
298+
"B028",
299+
"B904",
296300
]
297301

298302
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)