We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a7327 commit 9cce158Copy full SHA for 9cce158
codegen/core/src/main/java/software/amazon/smithy/python/codegen/PythonFormatter.java
@@ -72,6 +72,7 @@ private void format(FileManifest fileManifest) {
72
return;
73
}
74
LOGGER.info("Running code formatter on generated code");
75
+ CodegenUtils.runCommand("python3 -m ruff check --fix", fileManifest.getBaseDir());
76
CodegenUtils.runCommand("python3 -m ruff format", fileManifest.getBaseDir());
77
78
codegen/core/src/main/java/software/amazon/smithy/python/codegen/generators/SetupGenerator.java
@@ -170,6 +170,9 @@ private static void writePyproject(
170
[tool.ruff]
171
target-version = "py312"
172
173
+ [tool.ruff.lint]
174
+ ignore = ["F841"]
175
+
176
[tool.pytest.ini_options]
177
python_classes = ["!Test"]
178
asyncio_mode = "auto"
0 commit comments