Skip to content

Commit 89f9131

Browse files
ashwin-antclaude
andauthored
Add PostToolUse hook for automatic formatting (#563)
Added a PostToolUse hook that automatically runs `bun run format` after Edit, Write, or MultiEdit operations, similar to the Python SDK's ruff formatting hook. This ensures code is automatically formatted whenever changes are made. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent b78e1c0 commit 89f9131

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.claude/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"hooks": {
3+
"PostToolUse": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "bun run format"
9+
}
10+
],
11+
"matcher": "Edit|Write|MultiEdit"
12+
}
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)