Skip to content

Commit 11f5db0

Browse files
committed
chore: add .editorconfig and .gitattributes
Add editor configuration and line ending normalization for consistent development across platforms.
1 parent 4202228 commit 11f5db0

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.py]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{yml,yaml}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[Makefile]
21+
indent_style = tab

.gitattributes

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Explicitly declare text files
5+
*.md text diff=markdown
6+
*.txt text
7+
*.csv text
8+
*.yml text
9+
*.yaml text
10+
*.json text
11+
*.xml text
12+
*.html text diff=html
13+
*.css text diff=css
14+
15+
# Denote binary files
16+
*.png binary
17+
*.jpg binary
18+
*.jpeg binary
19+
*.gif binary
20+
*.ico binary
21+
*.pdf binary
22+
*.zip binary
23+
*.gz binary
24+
*.tar binary

0 commit comments

Comments
 (0)