Skip to content

Make formatting check enforceable - #15

Merged
turinglambdaai merged 1 commit into
mainfrom
fix/format-check
Sep 30, 2026
Merged

turinglambdaai merged 1 commit into
mainfrom
fix/format-check

Conversation

@turinglambdaai

Copy link
Copy Markdown
Owner

The existing raco fmt --check invocation is unsupported and always exits 1, while continue-on-error hides it. Format each Racket file in the CI checkout, then require a clean diff so the check is portable and actually enforced. The current tree was validated locally and produces no formatting diff.

The previous raco fmt --check invocation was unsupported and always
exited 1 while continue-on-error hid the failure. Format each Racket
file in the CI checkout with the catalog fmt, then require a clean diff
so the check is portable and actually enforced. The whole tree is now
normalized against fmt @ 4e1ed68e so the enforced check passes.

Verified locally on Racket 9.2 CS: all 50 files compile, the
agent-contract and API test files pass, and a re-run of raco fmt -i
produces no further diff.
@turinglambdaai

Copy link
Copy Markdown
Owner Author

Rebuilt on current main (b22fc03): the enforced check needs a canonical tree, so this normalizes all 50 .rkt files against catalog fmt (@ 4e1ed68e) and then requires a clean diff in CI. Verified locally on Racket 9.2 CS — full tree compiles, agent-contract and API tests pass, and a second fmt pass is a no-op.

@turinglambdaai
turinglambdaai merged commit eea290b into main Sep 30, 2026
9 checks passed
@turinglambdaai
turinglambdaai deleted the fix/format-check branch September 30, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant