-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
76 lines (67 loc) · 2.79 KB
/
.gitattributes
File metadata and controls
76 lines (67 loc) · 2.79 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ------------------------------------------------------------
# Core: normalize line endings and treat text sensibly
# ------------------------------------------------------------
* text=auto # Let Git detect text/binary; normalize line endings
*.sh text eol=lf # Shell scripts should use LF
*.py text eol=lf
*.pyw text eol=lf
*.toml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.json text eol=lf
*.csv text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.env text eol=lf
*.bat text eol=crlf # Windows batch files typically CRLF
# ------------------------------------------------------------
# Binary / no-diff files (avoid noisy diffs)
# ------------------------------------------------------------
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.svg text eol=lf # SVGs are XML (text); keep LF but allow diffs
*.pdf binary
*.zip binary
*.gz binary
*.bz2 binary
*.7z binary
*.pkl binary
*.db binary
*.sqlite binary
*.sqlite3 binary
# Jupyter notebooks can create massive, noisy diffs.
# If you prefer *no* diffs in PRs, uncomment the next line:
# *.ipynb -diff
# ------------------------------------------------------------
# GitHub Linguist (repo language stats and file classification)
# ------------------------------------------------------------
# Treat vendored/third-party code as vendored so it doesn’t skew language stats
vendor/** linguist-vendored
third_party/** linguist-vendored
# Treat generated artifacts as generated
dist/** linguist-generated
build/** linguist-generated
html/** linguist-generated
images/** linguist-generated
# Keep documentation from skewing language stats
docs/** linguist-documentation
*.md linguist-documentation
# If you keep datasets in-repo, mark them as vendored or data (not source)
data/** linguist-vendored
# ------------------------------------------------------------
# Optional: merge strategies for “lock”/machine files
# (Uncomment if you use Poetry/Pipenv and prefer taking incoming on conflicts)
# ------------------------------------------------------------
# poetry.lock merge=union
# Pipfile.lock merge=union
# ------------------------------------------------------------
# Optional: export-ignore for archives (keeps source bundles lean)
# Uncomment to exclude dev-only files from `git archive`
# ------------------------------------------------------------
# .gitattributes export-ignore
# .gitignore export-ignore
# .github/ export-ignore
# tests/ export-ignore