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
This commit is contained in:
Charlie Tonneslan
2026-03-23 00:55:38 -04:00
committed by GitHub
parent 264396a616
commit a411da9122

View File

@@ -14,7 +14,7 @@ Identify the project's build tool and run the build:
| `pom.xml` | `mvn compile` | | `pom.xml` | `mvn compile` |
| `build.gradle` | `./gradlew compileJava` | | `build.gradle` | `./gradlew compileJava` |
| `go.mod` | `go build ./...` | | `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 ## Step 2: Parse and Group Errors