Repository navigation
Commit 70ec6bb
committed
ci: enforce the format check locally and in the pipeline
- Extend the pre-commit hook to run lint and the format check joined by a shell AND, so the first failure short circuits and the hook exits with the failing command's status. The hook reports and rejects; it never rewrites a file, leaving the format and lint:fix scripts as the explicit manual escapes.
- The hook runs the same two scripts the pipeline runs, over the whole repository rather than over staged paths only, so green locally and red on push cannot disagree. No new dependency was needed to do it.
- Insert a Format check step into the workflow between typecheck and test, invoking the script by name. Nothing else about the workflow changes.1 parent 3ba808d commit 70ec6bb
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments