[None][chore] add a EditorConfig config (#6897)

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
This commit is contained in:
Zhenhua Wang 2025-08-15 15:54:37 +08:00 committed by GitHub
parent b23fdfc62f
commit fadb5e75dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

24
.editorconfig Normal file
View File

@ -0,0 +1,24 @@
# Auto basic formatting when saving file with EditorConfig https://editorconfig.org/
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
# make
[Makefile*]
indent_style = tab
indent_size = 4
# c++
[*.{cpp,cu,h}]
indent_style = space
indent_size = 4
# python
[*.py]
indent_style = space
indent_size = 4