# 自动规范化行尾符
# 所有文本文件在仓库中统一使用 LF，checkout 时根据系统自动转换
* text=auto eol=lf

# 明确指定文本文件类型
*.py text eol=lf
*.pyi text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.rst text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.toml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.conf text eol=lf
*.xml text eol=lf
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.sh text eol=lf

# Windows 批处理文件保持 CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# 二进制文件（不进行行尾转换）
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.zip binary
*.gz binary
*.tar binary
*.whl binary
*.pyc binary
*.pyo binary
*.so binary
*.dll binary
*.exe binary

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

# Docker
Dockerfile text eol=lf
docker-compose*.yml text eol=lf

# 锁文件
uv.lock text eol=lf
poetry.lock text eol=lf
