# SPDX-License-Identifier: Apache-2.0 OR MIT
# https://editorconfig.org
root = true

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

[*.py]
indent_style = space
indent_size = 4
# ruff's line-length in pyproject.toml
max_line_length = 88

[*.{yml,yaml,json,jsonc,cff}]
indent_style = space
indent_size = 2

[*.toml]
indent_style = space
indent_size = 4

[*.md]
# Two trailing spaces are a hard line break in Markdown.
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[fuzz/corpus/**]
# Fuzz seeds and regression inputs are bytes, kept exactly as found.
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
