# Editor defaults, matching the formatter this project already runs so that
# saving a file in any editor produces what `ruff format` would produce.
# Settings live in pyproject.toml under [tool.ruff]; these mirror them.
root = true

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

[*.{py,pyi}]
max_line_length = 88

# CUDA, C++ and the shader languages follow the same four-space style as the
# Python, which is what the existing kernel sources use.
[*.{cu,cuh,cpp,h,hpp,cl,metal,comp,glsl}]
indent_size = 4

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

[*.md]
# Two trailing spaces are a hard line break in Markdown; do not eat them.
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
