Skip to content

Add pre-commit config for ruff#30

Merged
msrdic merged 3 commits intomainfrom
fix-claude-hook-schema
Apr 15, 2026
Merged

Add pre-commit config for ruff#30
msrdic merged 3 commits intomainfrom
fix-claude-hook-schema

Conversation

@msrdic
Copy link
Copy Markdown
Owner

@msrdic msrdic commented Apr 15, 2026

Adds .pre-commit-config.yaml so ruff check and format run automatically on every git commit, regardless of whether you're in an agent session.

Setup

pip install pre-commit && pre-commit install

🤖 Generated with Claude Code

msrdic added 3 commits April 16, 2026 01:48
Our installer wrote a flat list of {event, command} objects, but Claude
Code expects hooks as a dict keyed by event name, with each entry being
a list of matcher objects containing a nested hooks array:

    {
      "hooks": {
        "UserPromptSubmit": [
          {"hooks": [{"type": "command", "command": "..."}]}
        ]
      }
    }

Updates tests to assert the correct schema.
Run once to activate:
  pip install pre-commit && pre-commit install
@msrdic msrdic merged commit f5239e8 into main Apr 15, 2026
5 checks passed
@msrdic msrdic deleted the fix-claude-hook-schema branch April 15, 2026 23:53
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