# =============================================================================
# Python Backend Git Ignore Rules
# =============================================================================

# =============================================================================
# Python
# =============================================================================
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
!app/lib/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

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

# Translations
*.mo
*.pot

# Django stuff (if applicable)
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff (if applicable)
instance/
.webassets-cache

# Scrapy stuff (if applicable)
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# =============================================================================
# Python Virtual Environments
# =============================================================================
venv/
ENV/
env/
.venv/
.ENV/
.env.venv/
poetry.lock.venv

# =============================================================================
# Poetry
# =============================================================================
poetry.toml

# =============================================================================
# Environment Variables & Secrets
# =============================================================================
.env
.env.local
.env.production
.env.*.local
*.env

# GCP Service Account Keys (CRITICAL)
*credentials*.json
*.json.key
service-account*.json

# =============================================================================
# Type Checking & Linting
# =============================================================================
.mypy_cache/
.dmypy.json
dmypy.json
.ruff_cache/
.pylint.d/

# =============================================================================
# Application Logs
# =============================================================================
logs/
*.log
*.log.*

# =============================================================================
# Database Files
# =============================================================================
*.db
*.sqlite
*.sqlite3

# =============================================================================
# Celery
# =============================================================================
celerybeat-schedule
celerybeat.pid

# =============================================================================
# Temporary & Debug Files
# =============================================================================
*.pyc
*.pyo
*.pyd
.Python
*.so
*.egg
*.egg-info
debug_*.py
test_*.temp.py
scratch*.py
