-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.editorconfig
More file actions
42 lines (34 loc) · 784 Bytes
/
.editorconfig
File metadata and controls
42 lines (34 loc) · 784 Bytes
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 for a Python project
# Adjust as needed for your team's conventions.
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# Python source files
[*.{py,pyi,pyx,pxd}]
indent_style = space
indent_size = 4
# Common hint matching Black's default line length
max_line_length = 120
# Config and data files
[*.{json,jsonc,toml,yml,yaml}]
indent_style = space
indent_size = 2
# Markdown: keep trailing spaces (they can mean a line break)
[*.md]
trim_trailing_whitespace = false
# Makefile requires tabs
[Makefile]
indent_style = tab
# Shell scripts
[*.{sh,bash,zsh}]
indent_style = space
indent_size = 2
# This file itself
[*.editorconfig]
indent_style = space
indent_size = 2