Skip to content

Instantly share code, notes, and snippets.

@cgiacomi
Created November 23, 2018 08:48
Show Gist options
  • Save cgiacomi/3f1b95fc7c70d754c07fc81fe0cbf376 to your computer and use it in GitHub Desktop.
Save cgiacomi/3f1b95fc7c70d754c07fc81fe0cbf376 to your computer and use it in GitHub Desktop.
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
[docs/**.txt]
max_line_length = 79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment