Skip to content

Commit 203b5e8

Browse files
leliaclaude
andcommitted
chore: add .gitattributes and normalize line endings to LF
Eleven Python files were committed with CRLF, socketdev/__init__.py among them. Any tooling that reads and rewrites one of those files converts it to LF on the way out, so a two-line edit arrives as a whole-file diff with the real change buried in it. That happened while writing the enum change in this same branch. This normalizes all of them once and pins the setting so it cannot recur. Reviewable with `git diff -w`, which shows only .gitattributes: no file content changed, and the unit suite is unaffected. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent d99483b commit 203b5e8

13 files changed

Lines changed: 2295 additions & 2266 deletions

File tree

.gitattributes

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Normalize line endings to LF in the repository.
2+
#
3+
# Eleven Python files were committed with CRLF, socketdev/__init__.py among
4+
# them. Any tooling that reads and rewrites one of those files converts it to
5+
# LF on the way out, which turns a two-line change into a whole-file diff and
6+
# buries the actual edit. Normalizing once and pinning the setting here stops
7+
# that from recurring.
8+
* text=auto
9+
10+
*.py text eol=lf
11+
*.pyi text eol=lf
12+
*.md text eol=lf
13+
*.rst text eol=lf
14+
*.toml text eol=lf
15+
*.cfg text eol=lf
16+
*.yml text eol=lf
17+
*.yaml text eol=lf
18+
*.json text eol=lf
19+
*.sh text eol=lf
20+
*.lock text eol=lf
21+
22+
# Byte-exact, never line-ending-normalized.
23+
*.png binary
24+
*.jpg binary
25+
*.jpeg binary
26+
*.gif binary
27+
*.ico binary
28+
*.whl binary
29+
*.gz binary

0 commit comments

Comments
 (0)