Skip to content

Commit a411da9

Browse files
authored
fix(commands): replace py_compile with compileall in build-fix (anomalyco#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 anomalyco#759
1 parent 264396a commit a411da9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎commands/build-fix.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Identify the project's build tool and run the build:
1414
| `pom.xml` | `mvn compile` |
1515
| `build.gradle` | `./gradlew compileJava` |
1616
| `go.mod` | `go build ./...` |
17-
| `pyproject.toml` | `python -m py_compile` or `mypy .` |
17+
| `pyproject.toml` | `python -m compileall -q .` or `mypy .` |
1818

1919
## Step 2: Parse and Group Errors
2020

0 commit comments

Comments
 (0)