# 统一编辑器行为。多人（三人都用同一仓库）时能省掉大量格式争吵。
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.py]
max_line_length = 100

[*.{yml,yaml,json,toml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

# PowerShell 脚本：UTF-8 无 BOM + LF（见 AGENTS.md）。
# 且必须是纯 ASCII —— Windows PowerShell 5.1 在无 BOM 时按 ANSI 解析 .ps1，
# 非 ASCII（例如中文）会变成非法字节并直接导致语法错误。
[*.ps1]
end_of_line = lf
charset = utf-8

[*.{bat,cmd}]
end_of_line = crlf
charset = utf-8
