mirror of
https://github.com/anthropics/claude-agent-sdk-python.git
synced 2025-10-06 01:00:03 +03:00
Configure automatic formatting via ruff check --fix and ruff format after Edit/Write/MultiEdit operations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
25 lines
568 B
JSON
25 lines
568 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(python -m ruff check src/ tests/ --fix)",
|
|
"Bash(python -m ruff format src/ tests/)",
|
|
"Bash(python -m mypy src/)",
|
|
"Bash(python -m pytest tests/)",
|
|
"Bash(python -m pytest tests/*)"
|
|
],
|
|
"deny": []
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python -m ruff check src/ tests/ --fix && python -m ruff format src/ tests/"
|
|
}
|
|
],
|
|
"matcher": "Edit|Write|MultiEdit"
|
|
}
|
|
]
|
|
}
|
|
} |