Skip to content

Commit 5420f59

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 e7a3c3a commit 5420f59

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
@@ -40,6 +40,7 @@
4040
- "**/*.toml"
4141
- "**/*.yaml"
4242
- "**/*.yml"
43+
- ".editorconfig"
4344
- ".git*"
4445
- ".git*/**"
4546
- "docs/*.py"

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exclude .darglint
2+
exclude .editorconfig
23
exclude .gitignore
34
exclude CODEOWNERS
45
exclude minimum-requirements-ci.txt

0 commit comments

Comments
 (0)