Repository navigation
Fix ruff violations and add CLAUDE.md - #1
Merged
Merged
Conversation
Sort import blocks, drop unused summarise import in rules.py, switch Severity to StrEnum (UP042), and apply ruff format so CI's lint and format-check steps pass. Add CLAUDE.md documenting the uv/pytest/ruff/catcheck commands, the findings/model/rules architecture, the rule-to-test pairing, catalogue conventions, and the no-data policy. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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
main: import ordering (I001) incli.py,rules.pyand the test file; unusedsummariseimport inrules.py(F401);Severity(str, Enum)→Severity(StrEnum)(UP042).ruff formatso the format-check step passes. This reflows the hand-packed vocabulary sets inmodel.pyand the multi-argFinding(...)calls inrules.py— purely cosmetic.CLAUDE.mddocumenting commands, the findings/model/rules architecture, the rule-to-test pairing, catalogue conventions and the no-data policy.Verification
uv run ruff check .— all checks passeduv run ruff format --check .— 13 files already formatteduv run pytest— 30 passeduv run catcheck catalogue.yaml— 25 entries, 0 errors, 0 warnings🤖 Generated with Claude Code