EASI-Leaderboard / .editorconfig
yangzhitao
chores: update project configuration files about code linting, formatting and dependencies
482874e
# indent_style 设置缩进为 tab 或 space
# tab_width 设置 tab 所占列数。默认是indent_size
# indent_size 设置缩进所占列数,如果 indent_style 为 tab,则以 tab_width 值作为缩进宽度
# end_of_line 设置换行符,值为lf、cr和crlf
# charset 设置编码,值为latin1、utf-8、utf-8-bom、utf-16be和utf-16le,不建议使用utf-8-bom
# trim_trailing_whitespace 设为 true 表示会去除行尾的空白字符
# insert_final_newline 设为 true 表示使文件以一个空白行结尾
# root    表示是最顶层的配置文件,设为 true 时,停止向上查找
[*]
charset = utf-8
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
[*.py]
indent_size = 4
insert_final_newline = true
# max_line_length = 79 # preferred to config in ruff.toml
[*.{toml,yaml,yml}]
indent_size = 2
insert_final_newline = true
max_line_length = 100
[*.{md}]
indent_size = 2
insert_final_newline = true
max_line_length = 100
[*.sh]
indent_size = 2
insert_final_newline = true
max_line_length = 100