Skip to content

Commit f55ab14

Browse files
Skip magic trailing comma in generated code
This makes generated code a bit more dense by informing ruff to not use trailing commas as a signal skip condensing an expanded block.
1 parent c176843 commit f55ab14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/generators/SetupGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ private static void writePyproject(
190190
[tool.ruff.lint]
191191
ignore = ["F841"]
192192
193+
[tool.ruff.format]
194+
skip-magic-trailing-comma = true
195+
193196
[tool.pytest.ini_options]
194197
python_classes = ["!Test"]
195198
asyncio_mode = "auto"

0 commit comments

Comments
 (0)