6bd4222fc1
Design spec for the bggpipe shelf-to-BGG pipeline, CLAUDE.md and bgg-api skill capturing BGG API constraints, ruff format-on-edit hook, README, LICENSE, and .gitignore. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
471 B
JSON
18 lines
471 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Write|Edit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "jq -r '.tool_input.file_path // .tool_response.filePath // empty' | { read -r f; case \"$f\" in *.py) uvx ruff format \"$f\" && uvx ruff check --fix \"$f\";; esac; } 2>/dev/null || true",
|
|
"timeout": 60,
|
|
"statusMessage": "ruff format + check"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|