# EditorConfig keeps basic file hygiene consistent across editors.
# See https://editorconfig.org
#
# Deliberately minimal. Ruff is the source of truth for Python formatting
# (indentation, line length), so those are not repeated here: duplicating them
# only creates two places to disagree. This file covers what Ruff does not.

root = true

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

[*.{md,fan}]
# Markdown uses a trailing double space for hard line breaks, and .fan specs
# are whitespace-significant.
trim_trailing_whitespace = false

[Makefile]
# Tabs are required here, not a preference.
indent_style = tab

[*.{bat,ps1}]
end_of_line = crlf
