.gitignore (Python)

Python, Django, FastAPI, Flask 프로젝트를 위한 포괄적인 .gitignore 파일.

Gist
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
*.egg
*.egg-info/
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
lib/
lib64/

# Virtual environments
.venv/
venv/
env/
ENV/
env.bak/
venv.bak/
.virtualenv/
.python-version

# Distribution / packaging
.eggs/
*.egg-info/
*.egg
MANIFEST
pip-wheel-metadata/

# Unit test / coverage
.tox/
.nox/
.coverage
.coverage.*
.cache
.pytest_cache/
nosetests.xml
coverage.xml
*.cover
*.py,cover
htmlcov/
.hypothesis/

# Environment variables
.env
.env.local
.env.*.local
*.env

# Jupyter Notebook
.ipynb_checkpoints/
*.ipynb_checkpoints/
profile_default/
ipython_config.py

# Type checking
.mypy_cache/
.dmypy.json
dmypy.json
.pyre/
.pytype/
pyrightconfig.json

# Django
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
media/
staticfiles/
collected_static/

# FastAPI / Uvicorn
*.pid

# Celery
celerybeat-schedule
celerybeat.pid

# Databases
*.db
*.sqlite
*.sqlite3

# Logs
logs/
*.log

# OS files
.DS_Store
Thumbs.db

# Editor files
.vscode/
.idea/
*.swp
*~