From 927b0bb7d74334e26438ae3d3c29bd96a6998032 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 9 Aug 2026 08:51:33 +0000 Subject: [PATCH] Add .gitattributes to mark lockfiles as generated Committed lockfiles (package-lock.json, uv.lock, pnpm-lock.yaml, and others) are kept for reproducible installs but flagged linguist-generated so GitHub collapses them in diffs and excludes them from language stats. This keeps PRs that ship lockfiles small and reviewable without dropping reproducibility. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_0174eaH6iN7hAo2BGWKXjd3S --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..68ac32f5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Lockfiles are machine-generated. Keep them committed for reproducible installs, +# but mark them as generated so GitHub collapses them in diffs and excludes them +# from repository language statistics. Patterns without a slash match at any depth. +package-lock.json linguist-generated=true +yarn.lock linguist-generated=true +pnpm-lock.yaml linguist-generated=true +uv.lock linguist-generated=true +poetry.lock linguist-generated=true +Cargo.lock linguist-generated=true