Skip to content

Commit e039d13

Browse files
committed
chore: add .editorconfig and .gitattributes, store validate.py with LF
.editorconfig is the same as TechEngine's: UTF-8, LF, final newline, 4 spaces for Python and 2 for YAML, JSON, Astro, Markdown and mjs. .gitattributes sets `* text=auto eol=lf`, so a Windows checkout no longer turns files into CRLF. app/validate.py was the only tracked text file stored with CRLF (all of data/ is LF already). It is renormalised here: every line shows as changed, but `git diff --ignore-cr-at-eol` against the parent is empty.
1 parent 53c9549 commit e039d13

3 files changed

Lines changed: 636 additions & 615 deletions

File tree

‎.editorconfig‎

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

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Every tracked text file is stored with LF; keep working trees the same on
2+
# Windows and macOS.
3+
* text=auto eol=lf

0 commit comments

Comments
 (0)