-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
168 lines (149 loc) · 4.32 KB
/
.gitattributes
File metadata and controls
168 lines (149 loc) · 4.32 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# GitHub Linguist Configuration
# Control language detection and statistics
# ===== MARK CSS AS VENDORED (THIRD-PARTY) =====
# This prevents CSS from being counted as the main language
*.css linguist-vendored
css/* linguist-vendored
static/css/* linguist-vendored
templates/static/css/* linguist-vendored
node_modules/css/* linguist-vendored
# Specific CSS frameworks to be ignored
css/bootstrap*.css linguist-vendored
css/animate.min.css linguist-vendored
css/font-awesome.min.css linguist-vendored
css/jquery*.css linguist-vendored
css/owl.carousel.min.css linguist-vendored
css/slick.css linguist-vendored
# ===== EMPHASIZE PYTHON =====
# Mark Python files as the primary language
*.py linguist-language=Python
*.pyw linguist-language=Python
*.pyi linguist-language=Python
# Python directories
app.py linguist-language=Python
config.py linguist-language=Python
openai_mw.py linguist-language=Python
tests/* linguist-language=Python
utils/* linguist-language=Python
models/* linguist-language=Python
scripts/* linguist-language=Python
__init__.py linguist-language=Python
# Python configuration files
setup.py linguist-language=Python
pyproject.toml linguist-language=Python
requirements.txt linguist-language=Python
# ===== EMPHASIZE JAVASCRIPT =====
# Mark JavaScript files as secondary language
*.js linguist-language=JavaScript
js/* linguist-language=JavaScript
static/js/* linguist-language=JavaScript
quiz.js linguist-language=JavaScript
constants.js linguist-language=JavaScript
# Exclude minified JavaScript from stats
*.min.js linguist-vendored
js/*.min.js linguist-vendored
js/bootstrap*.js linguist-vendored
js/jquery*.js linguist-vendored
# ===== MARK HTML TEMPLATES =====
*.html linguist-language=HTML
index.html linguist-language=HTML
quiz.html linguist-language=HTML
templates/* linguist-language=HTML
# ===== DOCUMENTATION FILES =====
# Mark documentation as non-code
*.md linguist-documentation
*.rst linguist-documentation
*.txt linguist-documentation
README.md linguist-documentation
CHANGELOG.md linguist-documentation
CONTRIBUTING.md linguist-documentation
DEPLOYMENT.md linguist-documentation
PROJECT_SUMMARY.md linguist-documentation
ROADMAP.md linguist-documentation
SECURITY.md linguist-documentation
API.md linguist-documentation
LICENSE linguist-documentation
# ===== CONFIGURATION FILES =====
# Mark various config files appropriately
*.json linguist-data
*.yaml linguist-data
*.yml linguist-data
*.toml linguist-data
*.ini linguist-data
*.cfg linguist-data
package.json linguist-data
.env* linguist-data
env.template linguist-data
# ===== EXCLUDE GENERATED/VENDOR FILES =====
# Build and dependency directories
node_modules/* linguist-vendored
build/* linguist-vendored
dist/* linguist-vendored
*.egg-info/* linguist-vendored
__pycache__/* linguist-vendored
.pytest_cache/* linguist-vendored
htmlcov/* linguist-vendored
# Font files
fonts/* linguist-vendored
*.eot linguist-vendored
*.ttf linguist-vendored
*.woff linguist-vendored
*.woff2 linguist-vendored
*.otf linguist-vendored
# Image files
images/* linguist-vendored
*.png linguist-vendored
*.jpg linguist-vendored
*.jpeg linguist-vendored
*.gif linguist-vendored
*.svg linguist-vendored
*.ico linguist-vendored
# ===== SHELL SCRIPTS =====
*.sh linguist-language=Shell
*.bat linguist-language=Batchfile
setup.sh linguist-language=Shell
setup.bat linguist-language=Batchfile
# ===== FORCE DETECTION =====
# Ensure these are always detected
*.py linguist-detectable=true
*.js linguist-detectable=true
*.html linguist-detectable=true
# ===== LANGUAGE OVERRIDES =====
# Force specific files to be recognized
app.py linguist-detectable=true
openai_mw.py linguist-detectable=true
config.py linguist-detectable=true
quiz.js linguist-detectable=true
constants.js linguist-detectable=true
# ===== EXCLUDE FROM DIFF =====
# Large or binary files to exclude from diffs
*.min.css -diff
*.min.js -diff
*.map -diff
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.ttf binary
*.woff binary
*.woff2 binary
*.eot binary
*.otf binary
# ===== LINE ENDING CONFIGURATION =====
# Normalize line endings
* text=auto
*.py text eol=lf
*.js text eol=lf
*.html text eol=lf
*.css text eol=lf
*.md text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.sh text eol=lf
*.bat text eol=crlf
# ===== MERGE STRATEGIES =====
# Special merge handling for certain files
package-lock.json merge=ours
*.lock merge=ours