Skip to content

Commit 9359a70

Browse files
committed
chore: add EditorConfig for consistent coding styles
Add .editorconfig to maintain consistent formatting across editors: - Python: 4 spaces, max line 88 (matches black) - YAML/JSON: 2 spaces - Unix line endings (LF) - UTF-8 encoding - Trim trailing whitespace
1 parent 1b861a6 commit 9359a70

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.editorconfig

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Python files
14+
[*.py]
15+
indent_style = space
16+
indent_size = 4
17+
max_line_length = 88
18+
19+
# JSON files
20+
[*.json]
21+
indent_style = space
22+
indent_size = 2
23+
24+
# YAML files
25+
[*.{yml,yaml}]
26+
indent_style = space
27+
indent_size = 2
28+
29+
# Markdown files
30+
[*.md]
31+
trim_trailing_whitespace = false
32+
max_line_length = off
33+
34+
# Shell scripts
35+
[*.sh]
36+
indent_style = space
37+
indent_size = 2
38+
39+
# Dockerfile
40+
[Dockerfile*]
41+
indent_style = space
42+
indent_size = 2
43+
44+
# Docker Compose
45+
[docker-compose*.yml]
46+
indent_style = space
47+
indent_size = 2
48+
49+
# Makefile
50+
[Makefile]
51+
indent_style = tab
52+
53+
# Configuration files
54+
[*.{cfg,ini,toml}]
55+
indent_style = space
56+
indent_size = 2

0 commit comments

Comments
 (0)