-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
29 lines (23 loc) · 890 Bytes
/
.gitattributes
File metadata and controls
29 lines (23 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# WHY: Ensures consistent line endings across Windows, macOS, and Linux
# WHY: Prevents "every line changed" diffs when collaborators use different OS
# OBS: Python/shell use LF, PowerShell uses CRLF
# REQ: Keep this file for cross-platform collaboration
# WHY: Auto-detect text files and normalize line endings
* text=auto
# WHY: Python and shell must use LF for CI/CD, Linux, containers
*.py text eol=lf
*.sh text eol=lf
# WHY: PowerShell convention on Windows
*.ps1 text eol=crlf
# WHY: Config files use LF - standard for cross-platform tools
*.md text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.toml text eol=lf
# WHY: Exclude docs/tests from language statistics on GitHub
docs/** linguist-documentation
tests/** linguist-documentation
# WHY: Jupyter notebooks need special diff/merge handling
*.ipynb diff=jupyternotebook
*.ipynb merge=jupyternotebook