Skip to content

Commit a28ce64

Browse files
STY: Enforce ruff/flake8-comprehensions rules (C4)
1 parent 102bbf7 commit a28ce64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ exclude = ["doc", "nibabel/externals", "tools", "version.py", "versioneer.py"]
117117
[tool.ruff.lint]
118118
select = [
119119
"B",
120+
"C4",
120121
"F",
121122
"I",
122123
"PLE",
@@ -135,6 +136,9 @@ ignore = [
135136
"B023", # TODO: enable
136137
"B028",
137138
"B904",
139+
"C401",
140+
"C408",
141+
"C416",
138142
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
139143
"W191",
140144
"E111",

0 commit comments

Comments
 (0)