69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
"attribution": {
|
|
"commit": "",
|
|
"pr": ""
|
|
},
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(uv sync:*)",
|
|
"Bash(uv add:*)",
|
|
"Bash(uv run pytest:*)",
|
|
"Bash(uv run ruff:*)",
|
|
"Bash(git status:*)",
|
|
"Bash(git diff:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git show:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(docker compose ps:*)",
|
|
"Bash(docker compose logs:*)",
|
|
"Bash(docker compose up:*)",
|
|
"Bash(docker compose down)",
|
|
"Bash(curl http://localhost:*)"
|
|
],
|
|
"ask": [
|
|
"Bash(uv run deverenz:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(git push:*)",
|
|
"Bash(docker compose down -v:*)",
|
|
"Bash(.claude/scripts/gitea.sh POST:*)",
|
|
"Bash(.claude/scripts/gitea.sh PATCH:*)",
|
|
"Bash(.claude/scripts/gitea.sh PUT:*)",
|
|
"Bash(.claude/scripts/gitea.sh DELETE:*)"
|
|
],
|
|
"deny": [
|
|
"Read(./.env)",
|
|
"Read(./.env.local)",
|
|
"Read(./.env.production)",
|
|
"Bash(cat .env:*)",
|
|
"Read(~/.config/deverenz-agent/**)",
|
|
"Bash(cat ~/.config/deverenz-agent:*)",
|
|
"Bash(rm -rf:*)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/ruff-format.sh"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/check-on-stop.sh",
|
|
"timeout": 300
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|