Repository navigation
chore: add a pre-commit config adapted from jebel-quant/rhiza - #53
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds
.pre-commit-config.yaml, adapted from jebel-quant/rhiza for a repo that isn't rhiza-managed and keeps its Python project incollector/. The header comment records each change:.rhiza/), the template-bundles and renovate schema checks (those files don't exist here), and interrogate (without a[tool.interrogate]table it would use its own defaults, a standard nobody here chose).collector/jq_collector/(rhiza reads a.banditfile this repo doesn't have),uv-lockto--project collector, and validate-pyproject tocollector/pyproject.toml.collector/uv.lock, so the hook and CI's Lint step can't disagree.It also includes the one change ruff-format made when first run: two blank lines removed in
scripts/check-dashboard.py. CI's Format step only coversjq_collector tests, which is why this drift was never caught.The hooks don't all pass yet (
uvx prek run --all-files): 11 pass, 2 fail.github.py(tracked in Parse downloaded coverage.xml with defusedxml (bandit B314) #50), plus B404/B603/B607 on the fixed-argumentgitsubprocess calls inlocalgit.pyandorigin.py.image/entrypoint.sh:44, a false positive, sincestop()is called throughtrap stop TERM INT.Nothing runs these hooks in CI yet, so merging this changes no check. Wiring them in is a follow-up once these failures are cleared.
🤖 Generated with Claude Code