Create .editorconfig
Reasonably tame .editorconfig for help with editting the .py & especially the YAML files
This commit is contained in:
parent
94521f2174
commit
d41e5c1152
22
.editorconfig
Normal file
22
.editorconfig
Normal 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
|
Loading…
x
Reference in New Issue
Block a user