Skip to content

Instantly share code, notes, and snippets.

@stephen-bunn
Created April 24, 2019 16:46
Show Gist options
  • Save stephen-bunn/273ab32134babfe992882dbc03fc1c36 to your computer and use it in GitHub Desktop.
Save stephen-bunn/273ab32134babfe992882dbc03fc1c36 to your computer and use it in GitHub Desktop.
Medium - Python Editorconfig Sample
# EditorConfig http://editorconfig.org
root = true
# global config
[*]
charset = utf-8
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# python config
[*.py]
indent_size = 4
# sphinx config
[*.rst]
indent_size = 3
# external config
[*.{json,yaml,yml,toml,html,js}]
indent_size = 2
# batch config
[*.{bat}]
end_of_line = crlf
# license config
[LICENSE]
insert_final_newline = false
# make config
[Makefile]
indent_style = tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment