mirror of
https://github.com/Dasemu/VimmLoader.git
synced 2026-11-26 15:26:06 +00:00
Add CLAUDE.md, LESSONS.md, VERSION, .env.example, .claude/settings.json hooks, and CI/version workflows following the standard repo bootstrap. No linter or test suite exists yet; checks are limited to a Python syntax check (py_compile) in both the Stop hook and CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
566 B
JSON
26 lines
566 B
JSON
{
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "file=$(jq -r '.tool_input.file_path // empty'); if [ -n \"$file\" ] && [ \"${file##*.}\" = \"py\" ]; then python3 -m py_compile \"$file\"; fi"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && python3 -m py_compile run.py generator.py"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|