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

# C extensions
*.so

# Distribution / packaging
bin/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
*.spec

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

# --- Environments & Dependencies ---
# Virtual environments
.venv/
venv/
env/
ENV/
env.bak/
venv.bak/

# UV
.uv/

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

# --- Testing & Quality Assurance ---
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
pytestdebug.log

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre/Pyright/Ruff
.pyre/
.pyright/
.ruff_cache/

# --- IDEs & Editors ---
# VS Code
.vscode/
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json
*.code-workspace
.history/

# JetBrains (PyCharm, IntelliJ, etc.)
.idea/
*.iws

# Sublime Text
*.sublime-project
*.sublime-workspace

# Temporary / Swap files
*.swp
*.swo
*~
\#*\#

# --- OS Specific ---
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk

# --- Project Specific ---
# Logs
*.log
logs/

# Documentation builds
docs/_build/
site/

# Redis (if running locally and dumping data)
dump.rdb
appendonly.aof
