Skip to content

Fix ruff violations and add CLAUDE.md - #1

Merged
John-Howard merged 1 commit into
mainfrom
fix/ruff-lint
Sep 18, 2026
Merged

John-Howard merged 1 commit into
mainfrom
fix/ruff-lint

Conversation

@John-Howard

Copy link
Copy Markdown
Contributor

Summary

  • Fix the 5 ruff violations that were failing CI's lint step on main: import ordering (I001) in cli.py, rules.py and the test file; unused summarise import in rules.py (F401); Severity(str, Enum) → Severity(StrEnum) (UP042).
  • Apply ruff format so the format-check step passes. This reflows the hand-packed vocabulary sets in model.py and the multi-arg Finding(...) calls in rules.py — purely cosmetic.
  • Add CLAUDE.md documenting 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 passed
  • uv run ruff format --check . — 13 files already formatted
  • uv run pytest — 30 passed
  • uv run catcheck catalogue.yaml — 25 entries, 0 errors, 0 warnings

🤖 Generated with Claude Code

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]>
@John-Howard
John-Howard merged commit 7b941a9 into main Sep 18, 2026
4 checks passed
@John-Howard
John-Howard deleted the fix/ruff-lint branch September 18, 2026 16:07
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