Skip to content

Commit 142e270

Browse files
committed
Add editorconfig file
This is to have a common basic configuration that should work with most editors/IDEs. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent ae8782e commit 142e270

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-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
@@ -20,6 +20,7 @@
2020
- "**/*.toml"
2121
- "**/*.yaml"
2222
- "**/*.yml"
23+
- ".editorconfig"
2324
- ".git*"
2425
- ".git*/**"
2526
- "docs/*.py"

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
exclude .gitignore
22
exclude .darglint
3+
exclude .editorconfig
34
exclude noxfile.py
45
exclude CODEOWNERS
56
recursive-exclude .github *

0 commit comments

Comments
 (0)