# Schema-Refiner CLI工具套件 .gitattributes
# 版本: 3.1-CLI

# 自动检测文本文件并规范化行结尾
* text=auto

# 源代码文件
*.py text eol=lf
*.pyx text eol=lf
*.pyi text eol=lf
*.pyw text eol=lf

# 配置文件
*.json text eol=lf
*.toml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.conf text eol=lf

# 文档文件
*.md text eol=lf
*.rst text eol=lf
*.txt text eol=lf
*.rtf text eol=lf

# Web相关
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.xml text eol=lf

# Shell脚本
*.sh text eol=lf
*.bash text eol=lf
*.zsh text eol=lf
*.fish text eol=lf

# 批处理文件
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# SQL文件
*.sql text eol=lf

# Makefile
Makefile text eol=lf
makefile text eol=lf
*.mk text eol=lf

# Docker相关
Dockerfile text eol=lf
*.dockerfile text eol=lf
.dockerignore text eol=lf

# Git相关
.gitignore text eol=lf
.gitattributes text eol=lf
.gitmodules text eol=lf

# 证书和密钥文件（不要自动转换）
*.pem binary
*.key binary
*.crt binary
*.der binary
*.p12 binary
*.pfx binary

# 数据库文件
*.sqlite binary
*.sqlite3 binary
*.db binary

# 压缩文件
*.zip binary
*.tar binary
*.tar.gz binary
*.tgz binary
*.gz binary
*.bz2 binary
*.xz binary
*.7z binary
*.rar binary

# 图片文件
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg text eol=lf

# 字体文件
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.eot binary

# 音频/视频文件
*.mp3 binary
*.mp4 binary
*.avi binary
*.mov binary
*.wav binary

# 办公文档
*.pdf binary
*.doc binary
*.docx binary
*.xls binary
*.xlsx binary
*.ppt binary
*.pptx binary

# Python特定
*.pyc binary
*.pyo binary
*.pyd binary
*.so binary
*.egg binary
*.whl binary

# 设置导出忽略模式（用于归档）
export-ignore .git
export-ignore .gitignore
export-ignore .gitattributes
export-ignore .github/
export-ignore tests/
export-ignore docs/
export-ignore *.md
export-ignore tox.ini
export-ignore .travis.yml
export-ignore .github/
export-ignore .vscode/
export-ignore .idea/

# 语言检测（告诉GitHub这是Python项目）
*.py linguist-language=Python
*.pyi linguist-language=Python

# 标记生成的文件
schema_refiner/_version.py linguist-generated=true

# 大文件支持（如果项目将来需要）
# *.sqlite filter=lfs diff=lfs merge=lfs -text
# *.db filter=lfs diff=lfs merge=lfs -text