diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..dac46bf --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://raw.githubusercontent.com/anthropics/claude-code/main/.claude/settings.schema.json", + "_comment": "Claude Code settings for Python backend projects", + "env": { + "PYTHONDONTWRITEBYTECODE": "1" + }, + "hooks": { + "PreCommit": [ + { + "command": "ruff check ." + }, + { + "command": "ruff format --check ." + } + ] + }, + "permissions": { + "allow": [ + "python", + "pip install", + "pip list", + "pytest", + "ruff check", + "ruff format", + "uvicorn" + ], + "deny": [ + "pip install --break-system-packages", + "rm -rf /", + "python -c \"import os; os.system" + ] + } +} diff --git a/.gitignore b/.gitignore index d0a6545..a030a79 100644 --- a/.gitignore +++ b/.gitignore @@ -152,3 +152,6 @@ Thumbs.db *.log .env.local .env.*.local + +# Claude Code local settings +.claude/settings.local.json