# EditorConfig keeps file-level conventions consistent regardless of which
# editor a contributor uses. https://editorconfig.org/
root = true

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

# Python and TOML files use 4-space indentation. Python: PEP 8 / ruff default.
# TOML: matches existing pyproject.toml style across this repo.
[*.{py,toml}]
indent_size = 4

# YAML / JSON / Markdown / shell scripts use 2-space indentation (community
# default and matches existing files in this repo).
[*.{yml,yaml,json,md,sh}]
indent_size = 2

# Makefile rules require literal tabs.
[Makefile]
indent_style = tab
