Skip to content

Commit ee75199

Browse files
committed
Update .gitattributes: enhance GitHub Linguist configuration to improve language statistics
1 parent 0bb29cc commit ee75199

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.gitattributes

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1+
# GitHub Linguist configuration
2+
# Goal: make Python the dominant language by excluding notebooks and generated/docs assets from stats.
3+
4+
# Treat notebooks as documentation so they don't count toward language percentages
5+
*.ipynb linguist-documentation
6+
7+
# Exclude built site from stats (MkDocs output)
8+
site/** linguist-generated
9+
10+
# Exclude documentation content from stats
11+
docs/** linguist-documentation
12+
images/** linguist-documentation
13+
14+
# Keep explicit language hints for common extensions
115
*.sh linguist-language=Shell
216
*.md linguist-language=Markdown
317
*.json linguist-language=JSON
418
*.yml linguist-language=YAML
519
*.yaml linguist-language=YAML
6-
*.py linguist-language=Python
20+
*.py linguist-language=Python
21+
22+
# Ensure Python sources in uqdd/ are detectable (the default, but kept explicit for clarity)
23+
uqdd/** linguist-detectable=true

0 commit comments

Comments
 (0)