Skip to content

Commit f064b62

Browse files
STY: Enforce ruff/flake8-bugbear rules (B)
1 parent d6ea77b commit f064b62

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,23 @@ exclude = ["doc", "nibabel/externals", "tools", "version.py", "versioneer.py"]
116116

117117
[tool.ruff.lint]
118118
select = [
119+
"B",
119120
"F",
120121
"I",
121122
"Q",
122123
"UP",
123124
]
124125
ignore = [
126+
"B006", # TODO: enable
127+
"B008", # TODO: enable
128+
"B007",
129+
"B011",
130+
"B017", # TODO: enable
131+
"B018",
132+
"B020",
133+
"B023", # TODO: enable
134+
"B028",
135+
"B904",
125136
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
126137
"W191",
127138
"E111",

0 commit comments

Comments
 (0)