# 1. 忽略操作系统自动生成的文件
.DS_Store
Thumbs.db
*.lnk

# 2. 忽略编译/构建产物
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# 3. 忽略IDE配置
.vscode/
.idea/
*.swp
*.swo
*~

# 4. 忽略日志文件
*.log
*.tmp
*.temp
*.md

# 5. 忽略敏感数据
*.env
*.key
*.pem
*.cert
config.yaml
secrets/

# 6. 忽略大型媒体文件
*.mp4
*.mov
*.avi
*.wav
*.mp3
*.zip
*.tar
*.gz
*.7z
*.rar

# 7. 忽略数据分析/机器学习特有
*.model
*.h5
*.pkl
*.joblib
.ipynb_checkpoints/

# 8. 忽略你项目中的自动生成目录
# 根据你的目录结构，忽略source/output/和source/reports/下的所有文件
# 但保留目录结构本身（可以添加空的.gitkeep文件来保持空目录）
source/output/**/*
!source/output/.gitkeep
source/reports/**/*
!source/reports/.gitkeep