Skip to content

Instantly share code, notes, and snippets.

@vmlinz
Forked from rafamaciel/.editorconfig
Last active August 29, 2015 14:25
Show Gist options
  • Save vmlinz/9426321e2b4ff20f0e37 to your computer and use it in GitHub Desktop.
Save vmlinz/9426321e2b4ff20f0e37 to your computer and use it in GitHub Desktop.
Basic configuration of editorconfig to work with python
;
; Global Editor Config for Adaptive Labbers
;
; This is an ini style configuration. See http://editorconfig.org/ for more information on this file.
;
; Top level editor config.
root = true
; Always use Unix style new lines with new line ending on every file and trim whitespace
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
; Python: PEP8 defines 4 spaces for indentation
[*.py]
indent_style = space
indent_size = 4
; Salt state files, YAML format, 2 spaces
[*.sls, *.yaml, *.yml]
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment