chore: python tooling and Claude Code project settings

- pinned runtime/dev deps (폐쇄망 반입용 버전 고정)
- .env.example, .gitignore
- .claude/settings.json: 시크릿/env 읽기 차단, FastAPI dev 명령 허용

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-17 10:54:48 +09:00
parent 53f7d1d8bb
commit a91b9d0245
5 changed files with 68 additions and 0 deletions

39
.claude/settings.json Normal file
View File

@@ -0,0 +1,39 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/*.pem)",
"Read(**/*secret*)",
"Read(**/secrets/**)",
"Read(**/.secrets/**)",
"Bash(env)",
"Bash(env *)",
"Bash(printenv*)",
"Bash(set)",
"Bash(export -p*)"
],
"ask": [
"Bash(echo $*)",
"Bash(cat ./.env*)"
],
"allow": [
"Bash(python -m venv *)",
"Bash(python -m pip *)",
"Bash(pip install *)",
"Bash(pip freeze*)",
"Bash(uvicorn *)",
"Bash(python -m uvicorn *)",
"Bash(pytest*)",
"Bash(python -m pytest*)",
"Bash(ruff*)",
"Bash(python -m ruff *)",
"Read",
"Edit",
"Write"
]
}
}

9
.env.example Normal file
View File

@@ -0,0 +1,9 @@
# 복사해서 .env 로 쓰고 실제 값 채우기 (.env 는 커밋 금지)
PULP_BASE_URL=http://localhost:8080
PULP_USERNAME=admin
PULP_PASSWORD=
# TLS 검증: 사내 HTTPS Pulp + 사내 CA 면 PULP_CA_FILE 경로 지정.
# 개발 중 self-signed 라 검증 끄려면 false (운영 금지).
PULP_VERIFY_TLS=true
# 사내 CA 인증서(.pem) 경로. 비워두면 시스템 기본 신뢰저장소 사용.
PULP_CA_FILE=

8
.gitignore vendored Normal file
View File

@@ -0,0 +1,8 @@
.env
__pycache__/
*.pyc
.venv/
venv/
.pytest_cache/
.ruff_cache/
audit-log.jsonl

5
requirements-dev.txt Normal file
View File

@@ -0,0 +1,5 @@
-r requirements.txt
# 개발/테스트 전용
pytest==8.3.4
respx==0.22.0
ruff==0.9.2

7
requirements.txt Normal file
View File

@@ -0,0 +1,7 @@
# 런타임 의존성 (폐쇄망 반입 위해 버전 고정)
fastapi==0.115.6
uvicorn[standard]==0.34.0
httpx==0.28.1
jinja2==3.1.4
python-multipart==0.0.20
pydantic-settings==2.7.1