Files
claude-scripts/hooks/claude-code-settings.json
2025-09-21 10:28:50 +00:00

27 lines
627 B
JSON

{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "cd $CLAUDE_PROJECT_DIR/hooks && (python code_quality_guard.py 2>/dev/null || python3 code_quality_guard.py)"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "cd $CLAUDE_PROJECT_DIR/hooks && (python code_quality_guard.py 2>/dev/null || python3 code_quality_guard.py)"
}
]
}
]
}
}