chore: add project docs and agent workflow setup
This commit is contained in:
1 parent
b647343c99
commit
95e1b9cb89
15 files changed
+894
-1
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# PostToolUse hook: format and lint-fix a Python file after Claude edits it.
|
||||
file=$(jq -r '.tool_input.file_path // empty')
|
||||
[[ "$file" == *.py && -f "$file" ]] || exit 0
|
||||
command -v uv >/dev/null || exit 0
|
||||
cd "$CLAUDE_PROJECT_DIR" || exit 0
|
||||
[[ -f pyproject.toml ]] || exit 0
|
||||
uv run --quiet ruff format "$file" >/dev/null 2>&1
|
||||
uv run --quiet ruff check --fix "$file" >/dev/null 2>&1
|
||||
exit 0
|
||||
Reference in new issue
Block a user