Add editorconfig to maintain consistent style (#1486)

EditorConfig should help us maintain consistent style across different
editors. Many editors have native support; others have plugins.

Website: https://editorconfig.org/
This commit is contained in:
Travis Finkenauer 2019-05-18 08:30:55 -04:00 committed by Nguyen Anh Quynh
parent a095f344ce
commit 3fa14cf86d

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{py,pyx,pxd}]
indent_style = space
indent_size = 4
# Follow Linux kernel coding style
[*.{c,h,cpp,hpp,inc}]
indent_style = tab
indent_size = 8
[Makefile]
indent_style = tab