# Python 相关文件
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
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

# 单元测试 / 覆盖率报告
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# 环境变量文件
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# IDE 和编辑器
.vscode/
.idea/
*.swp
*.swo
*~
.project
.pydevproject

# 操作系统生成的文件
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
desktop.ini

# 日志文件
*.log
pip-log.txt
pip-delete-this-directory.txt

# 数据库
*.db
*.sqlite3

# 配置文件（包含敏感信息）
.pypirc
config.ini
secrets.json

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# pipenv
Pipfile.lock

# poetry
poetry.lock

# uv
uv.lock

# 临时文件
*.tmp
*.temp
.tmp/
.temp/

# 备份文件
*.bak
*.backup

# 压缩文件
*.zip
*.tar.gz
*.rar

# 文档生成
docs/_build/
.readthedocs.yml

# 类型检查
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# 性能分析
.prof

# 本地开发文件
local_settings.py
.local

# 测试输出
test_output/
test_results/

# 图片和媒体文件（如果是临时生成的）
*.png.tmp
*.jpg.tmp
*.gif.tmp