Add .editorconfig

This commit is contained in:
2021-12-02 07:15:35 +00:00
parent d9e1d2cf89
commit e58dede1b6
4 changed files with 64 additions and 33 deletions

24
.editorconfig Normal file
View File

@@ -0,0 +1,24 @@
# \file .editorconfig
# \author Copyright 2020, Matthew Gretton-Dann
# SPDX-License-Identifier: Apache-2.0
# top-most EditorConfig file
root = true
# We default to 2-spaces at tabs
[*]
indent_style = space
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
# Python is 4 spaces
[*.py]
indent_size = 4
max_line_length = 79
# Makefiles use Tabs.
[Makefile]
indent_style = tab