Add .editorconfig

This commit is contained in:
Valéry Febvre
2022-12-20 13:57:37 +01:00
parent 34b174f158
commit 6c7621e495

26
.editorconfig Normal file
View File

@@ -0,0 +1,26 @@
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
[*.py]
max_line_length = 140
# Use 2 spaces for the UI files
[*.{ui,ui.in}]
indent_size = 2
# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab