Skip to content

Commit

Permalink
STY: Enforce ruff/flake8-comprehensions rules (C4)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 22, 2024
1 parent e003f5a commit ad79b6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,16 @@ line-length = 99
exclude = ["doc", "nibabel/externals", "tools", "version.py", "versioneer.py"]

[tool.ruff.lint]
select = ["F", "I", "Q"]
select = [
"C4",
"F",
"I",
"Q",
]
ignore = [
"C401",
"C408",
"C416",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
Expand Down

0 comments on commit ad79b6b

Please sign in to comment.