generated from habedi/template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
42 lines (33 loc) · 967 Bytes
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# EditorConfig is awesome: https://EditorConfig.org
# Top-most EditorConfig file
root = true
# Global settings (applicable to all files unless overridden)
[*]
charset = utf-8 # Default character encoding
end_of_line = lf # Use LF for line endings (Unix-style)
indent_style = space # Use spaces for indentation
indent_size = 4 # Default indentation size
insert_final_newline = true # Make sure files end with a newline
trim_trailing_whitespace = true # Remove trailing whitespace
# Python specific settings, complying with PEP 8 style guide, except for the line length
[*.py]
max_line_length = 100
# Markdown files
[*.md]
trim_trailing_whitespace = false # Don't remove trailing whitespace in Markdown files
max_line_length = 150 # Allow longer lines in Markdown files
# Bash scripts
[*.sh]
indent_size = 2
# SQL files
[*.sql]
indent_size = 2
# YAML files
[*.yml]
indent_size = 2
# JSON files
[*.json]
indent_size = 2
# Terraform files
[*.tf]
indent_size = 4