# EditorConfig — https://editorconfig.org
#
# Universal editor defaults so any editor that supports the spec gets
# the same charset, line endings, indentation, and trailing-whitespace
# discipline as the rest of the toolchain (rustfmt, mypy, ruff).

root = true

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

[*.{rs,toml}]
indent_size = 4

[*.{py,pyi}]
indent_size = 4

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

[*.{md,markdown}]
# Trailing whitespace is significant in markdown (two-space hard breaks).
trim_trailing_whitespace = false
indent_size = 2

[Makefile]
indent_style = tab

[justfile]
indent_size = 4
