Create .editorconfig

Reasonably tame .editorconfig for help with editting the .py & especially the YAML files
This commit is contained in:
Łaurent ʘ❢Ŧ Ŧough 2019-11-09 14:18:03 -08:00 committed by GitHub
parent 94521f2174
commit d41e5c1152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.editorconfig Normal file
View File

@ -0,0 +1,22 @@
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf // Helps keep Windows, Mac, Linux on the same page since they handle end of line differently
indent_style = tab // Converts spaces to tabs
indent_size = 4 // 4 spaces per tab
insert_final_newline = true // Auto-adds a blank newline to the end of a file
trim_trailing_whitespace = true // Auto-trims trailing whitespace
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
indent_style = tab
indent_size = 4
# Matches the exact files either package.json or .travis.yml
[{*.yml,*.yaml,config.yml,defaults.yml}]
indent_style = space
indent_size = 2