diff options
Diffstat (limited to '.claude/hooks/black-format.sh')
| -rwxr-xr-x | .claude/hooks/black-format.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.claude/hooks/black-format.sh b/.claude/hooks/black-format.sh new file mode 100755 index 0000000..21fef5e --- /dev/null +++ b/.claude/hooks/black-format.sh @@ -0,0 +1,5 @@ +#!/bin/bash +file_path=$(jq -r '.tool_input.file_path') +if [[ "$file_path" =~ \.py$ ]]; then + black -q "$file_path" +fi |
