Skip to content

Commit c933090

Browse files
ewelsclaude
andauthored
Add PostToolUse hook for automatic code formatting (MultiQC#3461)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6656c6d commit c933090

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+
"matcher": "Write|Edit",
6+
"hooks": [
7+
{
8+
"type": "command",
9+
"command": "pre-commit run --files \"$CLAUDE_FILE_PATH\" || true"
10+
}
11+
]
12+
}
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)