From d0b3aac43818b88dc004f05b72d6b3f2897d1a33 Mon Sep 17 00:00:00 2001 From: Rob Svirskas Date: Wed, 7 Oct 2026 14:38:25 -0400 Subject: [PATCH] chore: mark the vendored front-end bundles as vendored GitHub reports this repository as 46% JavaScript. It is a Python project: 5,308,342 of the 5,328,166 bytes of JavaScript here are Swagger UI and the jQuery plugins, checked in as third-party bundles. Ours is 19,824 bytes - dis.js and tablesorter.js. Linguist counts every tracked file unless told otherwise, and its built-in vendor list covers node_modules and friends, not a hand-placed api/static/swagger-ui. A .gitattributes marking those four directories linguist-vendored takes 5.7 MB of vendor code out of the language breakdown. The files stay in the tree and in diffs; only the statistics change. Deliberately still counted: api/static/js/dis.js, api/static/js/tablesorter.js, api/static/css/main.css and api/static/css/tablesorter-jrc1.css. Co-Authored-By: Claude Opus 5 (1M context) --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8851306 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# GitHub's language statistics count every tracked file, so a checked-in +# third-party bundle is reported as if we wrote it. Swagger UI and the jQuery +# plugins ship here as vendored bundles: 5.3 MB of the 5.33 MB of JavaScript in +# this repository is theirs, which had GitHub calling a Python project 46% +# JavaScript. Marking them linguist-vendored leaves them in the tree and in the +# diff, and only takes them out of the language breakdown. +# +# Ours, and deliberately still counted: api/static/js/dis.js, +# api/static/js/tablesorter.js, api/static/css/main.css, +# api/static/css/tablesorter-jrc1.css. + +api/static/swagger-ui/** linguist-vendored +api/static/swagger-ui5/** linguist-vendored +api/static/js/jquery/** linguist-vendored +api/static/js/bootstrap-autocomplete/** linguist-vendored