You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): ruff format 4 files + add pre-commit-ruff hook for CI parity
The prior push (3bf4416) landed with ruff format drift in 4 files, which
CI Lint caught. This commit:
1. Applies `ruff format` to the 4 drift files:
- .claude/hooks/pre-tool-secret-shield.py
- mcp_server/hooks/agent_briefing.py
- mcp_server/shared/domain_mapping.py
- scripts/test-agent-briefing.py
2. Adds .claude/hooks/pre-commit-ruff.sh — a local pre-commit gate that
runs the SAME two checks CI runs (`ruff format --check .` and
`ruff check .`) and blocks the commit with exit 2 + a plain-English
reason on stderr if either fails. Mirrors zetetic's pre-commit-zetetic.sh
pattern so drift can't reach origin without a loud local signal.
3. Wires the ruff hook into .claude/hooks/hooks.json as the FIRST
PreToolUse entry on `command contains 'git commit'`, executing
before the existing pre-commit-zetetic.sh.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments