|
| 1 | +{ |
| 2 | + "$schema": "https://json.schemastore.org/claude-code-settings.json", |
| 3 | + "_comment": "Project-shared Claude Code settings. Commit this file. Personal overrides go in .claude/settings.local.json (gitignored). Permissions allow Claude to run validation commands without prompting; the deny list always wins. Hooks auto-run type-checkers after Edit/Write so type regressions surface immediately.", |
| 4 | + |
| 5 | + "permissions": { |
| 6 | + "allow": [ |
| 7 | + "Bash(git status:*)", |
| 8 | + "Bash(git diff:*)", |
| 9 | + "Bash(git log:*)", |
| 10 | + "Bash(git show:*)", |
| 11 | + "Bash(git branch:*)", |
| 12 | + "Bash(git stash list)", |
| 13 | + "Bash(git remote -v)", |
| 14 | + |
| 15 | + "Bash(ls:*)", |
| 16 | + "Bash(grep:*)", |
| 17 | + "Bash(find:*)", |
| 18 | + "Bash(cat:*)", |
| 19 | + "Bash(head:*)", |
| 20 | + "Bash(tail:*)", |
| 21 | + "Bash(wc:*)", |
| 22 | + "Bash(tree:*)", |
| 23 | + "Bash(file:*)", |
| 24 | + |
| 25 | + "Bash(ps aux)", |
| 26 | + "Bash(ps -ef)", |
| 27 | + "Bash(docker ps:*)", |
| 28 | + "Bash(docker logs:*)", |
| 29 | + "Bash(docker exec * psql:*)", |
| 30 | + "Bash(docker network inspect:*)", |
| 31 | + "Bash(redis-cli ping)", |
| 32 | + "Bash(redis-cli llen:*)", |
| 33 | + "Bash(redis-cli info:*)", |
| 34 | + |
| 35 | + "Bash(python -m mypy:*)", |
| 36 | + "Bash(pytest:*)", |
| 37 | + "Bash(pre-commit run:*)", |
| 38 | + "Bash(black --check:*)", |
| 39 | + "Bash(alembic heads)", |
| 40 | + "Bash(alembic history:*)", |
| 41 | + "Bash(alembic current)", |
| 42 | + "Bash(alembic check)", |
| 43 | + "Bash(PYTHONPATH=* python -c:*)", |
| 44 | + "Bash(PYTHONPATH=* python -m:*)", |
| 45 | + |
| 46 | + "Bash(npx tsc --noEmit:*)", |
| 47 | + "Bash(npx tsc --noEmit --incremental:*)", |
| 48 | + "Bash(npm run lint:*)", |
| 49 | + "Bash(npm run typecheck:*)", |
| 50 | + "Bash(npx prettier --check:*)", |
| 51 | + "Bash(npx playwright test --list:*)", |
| 52 | + |
| 53 | + "Bash(gh api repos/:*)", |
| 54 | + "Bash(gh pr view:*)", |
| 55 | + "Bash(gh issue view:*)", |
| 56 | + "Bash(gh pr list:*)", |
| 57 | + "Bash(gh issue list:*)", |
| 58 | + "Bash(gh pr checks:*)", |
| 59 | + "Bash(gh run view:*)", |
| 60 | + "Bash(gh run list:*)" |
| 61 | + ], |
| 62 | + |
| 63 | + "deny": [ |
| 64 | + "Bash(git push:*)", |
| 65 | + "Bash(git push --force:*)", |
| 66 | + "Bash(git push -f:*)", |
| 67 | + "Bash(git reset --hard:*)", |
| 68 | + "Bash(git checkout --:*)", |
| 69 | + "Bash(git clean -fd:*)", |
| 70 | + "Bash(git branch -D:*)", |
| 71 | + "Bash(rm -rf /:*)", |
| 72 | + "Bash(rm -rf ~:*)", |
| 73 | + "Bash(sudo:*)", |
| 74 | + "Bash(docker compose down -v:*)", |
| 75 | + "Bash(docker volume rm:*)", |
| 76 | + "Bash(docker rm -f:*)", |
| 77 | + "Bash(alembic downgrade:*)", |
| 78 | + "Bash(npm publish:*)", |
| 79 | + "Bash(gh pr merge:*)", |
| 80 | + "Bash(gh pr close:*)" |
| 81 | + ] |
| 82 | + }, |
| 83 | + |
| 84 | + "env": { |
| 85 | + "PYTHONDONTWRITEBYTECODE": "1" |
| 86 | + }, |
| 87 | + |
| 88 | + "hooks": { |
| 89 | + "Stop": [ |
| 90 | + { |
| 91 | + "hooks": [ |
| 92 | + { |
| 93 | + "type": "command", |
| 94 | + "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/check_changed.sh\"" |
| 95 | + } |
| 96 | + ] |
| 97 | + } |
| 98 | + ] |
| 99 | + } |
| 100 | +} |
0 commit comments