From a411da9122409b3a012305ccf62907cea56983f7 Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Mon, 23 Mar 2026 00:55:38 -0400 Subject: [PATCH] fix(commands): replace py_compile with compileall in build-fix (#804) py_compile requires explicit filenames and exits with status 2 when invoked without them. compileall -q . recursively validates Python syntax across the entire project, which is what the build-fix command actually needs. Fixes #759 --- commands/build-fix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/build-fix.md b/commands/build-fix.md index d7468efe..ddd9e279 100644 --- a/commands/build-fix.md +++ b/commands/build-fix.md @@ -14,7 +14,7 @@ Identify the project's build tool and run the build: | `pom.xml` | `mvn compile` | | `build.gradle` | `./gradlew compileJava` | | `go.mod` | `go build ./...` | -| `pyproject.toml` | `python -m py_compile` or `mypy .` | +| `pyproject.toml` | `python -m compileall -q .` or `mypy .` | ## Step 2: Parse and Group Errors