-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
58 lines (48 loc) · 1.77 KB
/
Copy path.gitattributes
File metadata and controls
58 lines (48 loc) · 1.77 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
# Default: Auto-detect text files and normalize line endings to LF
* text=auto eol=lf
# Python source files: Enforce UTF‑8 encoding and enable Python-aware diffs
*.py text diff=python encoding=utf-8
*.pyi text diff=python encoding=utf-8
*.pyw text diff=python encoding=utf-8
# Python project configuration files: Consistent UTF‑8 encoding
*.toml text encoding=utf-8
pyproject.toml text encoding=utf-8
requirements*.txt text encoding=utf-8
.pre-commit-config.yaml text encoding=utf-8
# Documentation, configuration, and data files: Uniform encoding and enhanced diffs for Markdown
*.md text encoding=utf-8 diff=markdown
*.rst text encoding=utf-8
*.json text encoding=utf-8
*.yaml text encoding=utf-8
*.yml text encoding=utf-8
*.ini text encoding=utf-8
*.cfg text encoding=utf-8
# Explicitly declare files that should use LF line endings (scripts and makefiles)
*.sh text eol=lf
Makefile text eol=lf
*.mk text eol=lf
# Jupyter Notebooks: Ensure UTF‑8 encoding for proper text processing
*.ipynb text encoding=utf-8
# Cython source files: Enable proper diffing with enforced UTF‑8 encoding
*.pyx text diff=python encoding=utf-8
# Scalable Vector Graphics: Enforce UTF‑8 encoding and enable XML-aware diffs
*.svg text encoding=utf-8 diff=xml
# Additional text files: Enforce LF and UTF‑8 for plain text files
*.txt text eol=lf working-tree-encoding=utf-8
# Binary and compiled files: Prevent alterations by marking as binary
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary
*.pyd binary
*.pyo binary
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.zip binary
*.pdf binary
# Exclude Git-specific files from exports
.gitattributes export-ignore
.gitignore export-ignore