.claude/settings.json · chapter Tests and team tooling, file 20 · 51 lines · open in the repository
Source
.claude/settings.json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(python3 -m pytest *)",
"Bash(pytest *)",
"Bash(git add *)",
"Bash(git commit *)",
"Bash(git pull *)",
"Bash(git switch *)"
],
"ask": [
"Bash(git push *)"
],
"deny": [
"Read(/.env)",
"Edit(/.env)",
"Edit(/raw/**)",
"Bash(git push --force *)",
"Bash(git push -f *)"
]
},
"hooks": {
"SessionStart": [
{
"matcher": "startup|resume|clear|compact",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/session-brief.sh",
"args": [],
"timeout": 20
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/pre-commit-tests.sh",
"args": [],
"timeout": 120
}
]
}
]
}
}