# Python-generated files
__pycache__/
*.py[ocd]
build/
dist/
wheels/
*.egg-info

# Virtual environments
.venv

# 测试与覆盖率
.coverage
.coverage.*
htmlcov/
coverage.xml
.tox/

# 工具缓存
.mypy_cache/
.pytmp/
.pytest_cache/
.pyrefly_cache/
.ruff_cache/
.uv-cache/

# 日志
*.log
logs/

# IDE
.idea/
*_profile.html

# 本地协作产物一律不入库
.trae/*
!.trae/rules/
!.trae/skills/
!.trae/settings.json
.claude/
.workbuddy/

# --- OS / editor ---
Thumbs.db
desktop.ini
.DS_Store
.vscode/
*.bak
*backup-*.tar.gz
pytest-of-*

# --- 本地环境与凭证 ---
.env
.env.local
.env.*
# 示例配置必须入库（.env.* 会误伤它）
!.env.example

# Sphinx 文档构建输出
docs/_build/
.preview
