Skip to content

Commit 5cfcc4c

Browse files
committed
add .editorconfig for consistent coding styles across editors
1 parent da857d1 commit 5cfcc4c

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# EditorConfig is awesome: https://editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# General settings
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
max_line_length = 80
12+
charset = utf-8
13+
14+
# 4 space indentation
15+
[*.py]
16+
max_line_length = 130
17+
indent_style = space
18+
indent_size = 4
19+
20+
# Indentation override for rst files
21+
[*.rst]
22+
indent_style = space
23+
indent_size = 3
24+
25+
# Indentation override for rst and yaml files
26+
[*.{toml,yaml,qrc}]
27+
indent_style = space
28+
indent_size = 2

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ dmypy.json
131131
.pyre/
132132

133133
.idea
134-
uv.lock
134+
uv.lock

0 commit comments

Comments
 (0)