20 lines
473 B
Markdown
20 lines
473 B
Markdown
---
|
|
description: "Python hooks extending common rules"
|
|
globs: ["**/*.py", "**/*.pyi"]
|
|
alwaysApply: false
|
|
---
|
|
# Python Hooks
|
|
|
|
> This file extends the common hooks rule with Python specific content.
|
|
|
|
## PostToolUse Hooks
|
|
|
|
Configure in `~/.claude/settings.json`:
|
|
|
|
- **black/ruff**: Auto-format `.py` files after edit
|
|
- **mypy/pyright**: Run type checking after editing `.py` files
|
|
|
|
## Warnings
|
|
|
|
- Warn about `print()` statements in edited files (use `logging` module instead)
|