Skip to content

Commit 06373d6

Browse files
MAINT: Enforce ruff/flake8-bugbear rules (B)
1 parent 6007ac4 commit 06373d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,20 @@ extend-exclude = [
120120

121121
[tool.ruff.lint]
122122
extend-select = [
123+
"B",
123124
"C4",
124125
"I",
125126
"PGH",
126127
]
127128
ignore = [
129+
"B020", # Loop control variable overrides iterable it iterates
130+
"B904", # Within an `except` clause, raise exceptions with `raise ... from err`
128131
"E741", # Do not use variables named 'I', 'O', or 'l'
129132
]
130133

134+
[tool.ruff.lint.per-file-ignores]
135+
"test/**" = ["B011", "B017", "B018", "B028"]
136+
131137
[tool.setuptools_scm]
132138
write_to = "asv/_version.py"
133139

0 commit comments

Comments
 (0)