Skip to content

Commit dc19d28

Browse files
committed
Add .editorconfig
Editorconfig is a standard way to specific basic editor configuration accross different editors. For more information see https://editorconfig.org/. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent d2245cc commit dc19d28

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Set default charset, indent style and trimming of whitespace
12+
[{.editorconfig,CODEOWNERS,LICENSE,*.{in,json,md,proto,py,pyi,toml,yaml,yml}}]
13+
charset = utf-8
14+
indent_style = space
15+
trim_trailing_whitespace = true
16+
17+
# 4 space indentation
18+
[*.{py,pyi}]
19+
indent_size = 4
20+
21+
# 2 space indentation
22+
[{.editorconfig,CODEOWNERS,LICENSE,*.{in,json,proto,toml,yaml,yml}}]
23+
indent_size = 2
24+
25+
# No indentation size specified for *.md because different blocks have
26+
# different indentation rules

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- "**/*.toml"
2525
- "**/*.yaml"
2626
- "**/*.yml"
27+
- ".editorconfig"
2728
- ".git*"
2829
- ".git*/**"
2930
- CODEOWNERS

0 commit comments

Comments
 (0)