Python Bytes

#503 It’s not 85% HTML

10 snips
Nov 3, 2026
GitHub’s language bar can wildly misrepresent a project, but a few attributes can set the record straight. A new typing survey explores checker habits and AI-generated annotations. Flask Vibe champions understandable apps, while MicroPython turns an affordable PineTime smartwatch into a hackable wearable. Plus, PyPI limits, Python releases, and a Fortran-versus-vibe-coded maintenance dilemma.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Why Chameleon-RS Looked Like An HTML Project

  • Michael Kennedy’s Chameleon-RS repository appeared to be 85% HTML because committed documentation output outweighed its Rust code.
  • GitHub’s Linguist counts tracked bytes, so a large generated site can completely distort a project’s language bar.
ADVICE

Fix GitHub Language Bars With Linguist Attributes

  • Add .gitattributes rules using linguist-generated, linguist-vendored, or linguist-detectable=false to correct GitHub language statistics.
  • Use linguist-generated for build output, vendored for copied code, and git check-attr to verify the patterns before pushing.
INSIGHT

Git Attributes Also Improve Pull Requests

  • Linguist attributes do more than adjust percentages: linguist-generated also collapses generated-file diffs in pull requests.
  • Excluding tests and benchmarks symmetrically prevents implementation languages from being overshadowed by verification code.
Get the Snipd Podcast app to discover more snips from this episode
Get the app