Skip to content

Commit 9cce158

Browse files
Apply ruff check fixes
1 parent 81a7327 commit 9cce158

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/PythonFormatter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ private void format(FileManifest fileManifest) {
7272
return;
7373
}
7474
LOGGER.info("Running code formatter on generated code");
75+
CodegenUtils.runCommand("python3 -m ruff check --fix", fileManifest.getBaseDir());
7576
CodegenUtils.runCommand("python3 -m ruff format", fileManifest.getBaseDir());
7677
}
7778

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
@@ -170,6 +170,9 @@ private static void writePyproject(
170170
[tool.ruff]
171171
target-version = "py312"
172172
173+
[tool.ruff.lint]
174+
ignore = ["F841"]
175+
173176
[tool.pytest.ini_options]
174177
python_classes = ["!Test"]
175178
asyncio_mode = "auto"

0 commit comments

Comments
 (0)