npx claudepluginhub ruslan-korneev/claude-plugins --plugin pythonDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q '\\.py$'; then ruff format \"$file_path\" 2>/dev/null; ruff check --fix --unsafe-fixes \"$file_path\" 2>/dev/null; mypy \"$file_path\" --no-error-summary 2>/dev/null | head -20; fi; } || true"
}
],
"matcher": "Edit|Write"
}
]
}"Runs post-edit-format.sh via bash after PostToolUse for Edit|MultiEdit|Write events. Handles file writes, likely for code formatting post-edits."