# ==============================================================================
# 1. Python Runtime & Build Artifacts
# ==============================================================================
__pycache__/
*.py[cod]
*$py.class
*.so

# Virtual environments
.venv/
venv/
ENV/
env/

# Packaging and distribution artifacts (Hatchling / Wheel / PIP)
build/
dist/
wheels/
*.egg-info/
.eggs/
*.egg
pip-wheel-metadata/

# ==============================================================================
# 2. Environment Configuration & Secrets (pydantic-settings)
# ==============================================================================
# Protect SMTP credentials (SMTP_USER, SMTP_PASSWORD) from leaking
.env
.env.*
!.env.example
!.env.template

# ==============================================================================
# 3. SQLite Databases (including PRAGMA journal_mode = WAL files)
# ==============================================================================
# Default project database (cli.py) and general SQLite files
mail_cadence.db
mail_cadence.db-shm
mail_cadence.db-wal
mail_cadence.db-journal

*.db
*.db-shm
*.db-wal
*.db-journal
*.sqlite
*.sqlite3
*.sqlite3-shm
*.sqlite3-wal

# ==============================================================================
# 4. Quality Gates, Testing & Static Analysis Caches
# ==============================================================================
# Pytest & Coverage (pytest-cov)
.pytest_cache/
.coverage
.coverage.*
htmlcov/
coverage.xml
*.cover
.hypothesis/

# Mypy & Ruff
.mypy_cache/
.dmypy.json
dmypy.json
.ruff_cache/

# Other QA tools
.tox/
.nox/
.cache/

# ==============================================================================
# 5. Logs & Local Working Files (XML import/export)
# ==============================================================================
*.log
logs/
tmp/
temp/

# Local XML dump files (when generated outside tests/ or examples/)
*_export.xml
local_*.xml

# ==============================================================================
# 6. IDEs, Editors & OS-specific Files
# ==============================================================================
# JetBrains (PyCharm)
.idea/
*.iws
*.iml
*.ipr

# Zed / VS Code
.zed/
.vscode/

# Editor temporary files
*~
*.swp
*.swo

# Operating Systems (Linux / Windows / macOS)
.DS_Store
.DS_Store?
._*
Thumbs.db
ehthumbs.db
Desktop.ini


config/testmail/*
uv.lock
