Repository navigation
Replace Python corpus checker with shell and jq - #170
Merged
Merged
Conversation
The corpus checker and its test runner were written in Python, which the estate bans. They are replaced by check-case.sh, check-case.jq and run-tests.sh (POSIX shell and jq). The rules, rule codes and the 38 fire and silence tests are unchanged. The corpus moves from the root to tests/squabbler-corpus/ to satisfy the root-shape allowlist.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
hyperpolymath
marked this pull request as ready for review
November 22, 2026 18:24
hyperpolymath
added a commit
that referenced
this pull request
Nov 22, 2026
## Summary Moves the squabbler corpus from `corpus/` to `tests/squabbler-corpus/` and removes the Python checker. This is the same change as the leftover local commit `b588e76` from the PR #169 move. It duplicates the content of PR #170 (`test/squabbler-corpus-shell`), so it is a second route to the same tree, not new work. ## Checks - `tests/squabbler-corpus/run-tests.sh`: 38/38 tests behaved as expected (per PR #170). - No Python files remain. ## Status Draft. Not reviewed. Close this if PR #170 is the one you want to merge. --- _Generated by [Claude Code](https://claude.ai/code)_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Replaces the Python corpus checker and its test runner with a POSIX shell and jq implementation. The rules, rule codes and tests are unchanged. The corpus moves from the repository root to
tests/squabbler-corpus/so it fits the root allowlist.This follows PR #169, which merged with the Python files and red checks.
Changes
corpus/validate.pyandcorpus/tests/run-tests.py.corpus/totests/squabbler-corpus/(15 cases, schema, README). Content unchanged except the docs and schema description, which name the new checker.check-case.sh(entry point, needs jq),check-case.jq(rules) andrun-tests.sh(38 fire and silence tests).Testing
Run locally in this change:
Not run here: the repository's CI, Hypatia, SonarCloud and governance workflows. Their results on this PR are the real check.
Language
No Python remains under the repository (
git ls-files '*.py'returns nothing). The checker depends on jq, which is a standard tool and not a language runtime.Notes for review
596d90bb) was merged as commit27a1ddb1. This PR is the replacement.Generated by Claude Code