From bd3c25845869d48a454bc4541220162b068a748f Mon Sep 17 00:00:00 2001 From: KaifAhmad1 Date: Wed, 7 Jan 2026 15:59:39 +0530 Subject: [PATCH] chore: add .gitattributes to fix language statistics --- .gitattributes | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5595f17b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,20 @@ +# Linguist documentation and generated files +# This ensures GitHub language statistics reflect the core Python code + +# Mark the entire docs directory as documentation +docs/* linguist-documentation + +# Mark the cookbook directory as documentation/examples +cookbook/* linguist-documentation + +# Specifically ignore large generated HTML/JSON files in cookbook +cookbook/**/*.html linguist-documentation +cookbook/**/*.json linguist-documentation +cookbook/**/*.graphml linguist-documentation +cookbook/**/*.ttl linguist-documentation + +# Ensure .ipynb files are treated as documentation/examples +cookbook/**/*.ipynb linguist-documentation + +# Mark data directories as documentation or vendored +**/data/* linguist-vendored