Add .editorconfig (#149193)

This adds an .editorconfig file to automatically configure devs local Editors / IDEs with the basic formatting rules of the project.

List of supported editors: https://editorconfig.org/#pre-installed

Pull Request resolved: https://github.com/pytorch/pytorch/pull/149193
Approved by: https://github.com/malfet
This commit is contained in:
Thanh Ha
2025-03-29 04:07:17 +00:00
committed by PyTorch MergeBot
parent 66a7a49d64
commit 340beb7f7c

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
# Python
[*.py]
indent_style = space
indent_size = 4
# Make
[Makefile]
indent_style = tab