From 2cb4c681c0f7fddb0c80757a841704eff88b4c56 Mon Sep 17 00:00:00 2001 From: JustinOros Date: Mon, 21 Jul 2025 10:22:55 -0700 Subject: [PATCH] Fix GitHub incorrectly identifying Python files as TeX. --- .gitattributes | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitattributes b/.gitattributes index 0032ad9..9a65767 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,11 +1,12 @@ -# Force GitHub to detect the project as Python +# Treat all Python files as Python *.py linguist-language=Python -# Treat HTML files as generated (if any exist) -*.html linguist-generated=true - -# Ignore README, image, and license files from language stats -README.md linguist-documentation -*.png linguist-generated=true -*.jpg linguist-generated=true +# Treat other files as generated or documentation +*.md linguist-documentation +*.png linguist-generated +*.jpg linguist-generated +*.gif linguist-generated LICENSE linguist-documentation + +# Optional: force repo language to Python if all else fails +*.tex linguist-language=Python