{ "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "uv run --quiet ruff format --quiet src tests 2>/dev/null || true" } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "uv run --quiet ruff check --quiet . && uv run --quiet pytest -q -x 2>&1 | tail -3" } ] } ] } }