Skip to content

Commit 64c480b

Browse files
committed
🔧 have ruff format ignore trailing commas
1 parent 6179c94 commit 64c480b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,11 @@ preview = true
190190

191191
[tool.ruff.format]
192192
line-ending = "lf"
193+
skip-magic-trailing-comma = true
193194

194195
[tool.ruff.lint]
195196
select = ["ALL"]
196-
ignore = ["CPY", "FIX002"]
197+
ignore = ["CPY", "FIX002", "COM812"]
197198

198199
[tool.ruff.lint.per-file-ignores]
199200
"*.pyi" = [
@@ -231,7 +232,7 @@ preview = true
231232
combine-as-imports = true
232233
extra-standard-library = ["_typeshed", "typing_extensions"]
233234
known-first-party = ["numpy", "numtype", "_numtype"]
234-
split-on-trailing-comma = true
235+
split-on-trailing-comma = false
235236

236237
[tool.ruff.lint.pydocstyle]
237238
convention = "numpy"

0 commit comments

Comments
 (0)