|
7 | 7 | "event": "PostToolUse", |
8 | 8 | "matcher": "Write|Edit|str_replace_editor", |
9 | 9 | "type": "command", |
10 | | - "command": "cd /Users/AllenR1_1/Projects/zircote/git-notes-memory && uv run ruff format $CLAUDE_FILE_PATHS 2>/dev/null || true", |
| 10 | + "command": "cd \"$CLAUDE_PROJECT_DIR\" && uv run ruff format $CLAUDE_FILE_PATHS 2>/dev/null || true", |
11 | 11 | "conditions": { |
12 | 12 | "fileExtensions": [".py", ".pyi"] |
13 | 13 | } |
|
18 | 18 | "event": "PostToolUse", |
19 | 19 | "matcher": "Write|Edit|str_replace_editor", |
20 | 20 | "type": "command", |
21 | | - "command": "cd /Users/AllenR1_1/Projects/zircote/git-notes-memory && uv run ruff check $CLAUDE_FILE_PATHS --output-format=concise 2>/dev/null | head -20 || true", |
| 21 | + "command": "cd \"$CLAUDE_PROJECT_DIR\" && uv run ruff check $CLAUDE_FILE_PATHS --output-format=concise 2>/dev/null | head -20 || true", |
22 | 22 | "conditions": { |
23 | 23 | "fileExtensions": [".py", ".pyi"] |
24 | 24 | } |
|
29 | 29 | "event": "PostToolUse", |
30 | 30 | "matcher": "Write|Edit|str_replace_editor", |
31 | 31 | "type": "command", |
32 | | - "command": "cd /Users/AllenR1_1/Projects/zircote/git-notes-memory && uv run mypy $CLAUDE_FILE_PATHS 2>&1 | grep -E 'error:' | head -10 || true", |
| 32 | + "command": "cd \"$CLAUDE_PROJECT_DIR\" && uv run mypy $CLAUDE_FILE_PATHS 2>&1 | grep -E 'error:' | head -10 || true", |
33 | 33 | "conditions": { |
34 | 34 | "fileExtensions": [".py", ".pyi"] |
35 | 35 | } |
|
40 | 40 | "event": "PostToolUse", |
41 | 41 | "matcher": "Write|Edit|str_replace_editor", |
42 | 42 | "type": "command", |
43 | | - "command": "cd /Users/AllenR1_1/Projects/zircote/git-notes-memory && uv run bandit -ll $CLAUDE_FILE_PATHS 2>/dev/null | grep -E '^>>' | head -10 || true", |
| 43 | + "command": "cd \"$CLAUDE_PROJECT_DIR\" && uv run bandit -ll $CLAUDE_FILE_PATHS 2>/dev/null | grep -E '^>>' | head -10 || true", |
44 | 44 | "conditions": { |
45 | 45 | "fileExtensions": [".py"] |
46 | 46 | } |
|
51 | 51 | "event": "PreToolUse", |
52 | 52 | "matcher": "Bash", |
53 | 53 | "type": "command", |
54 | | - "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'git commit'; then cd /Users/AllenR1_1/Projects/zircote/git-notes-memory && make quality; fi", |
| 54 | + "command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -qE 'git commit'; then cd \"$CLAUDE_PROJECT_DIR\" && make quality; fi", |
55 | 55 | "blocking": true |
56 | 56 | } |
57 | 57 | ] |
|
0 commit comments