Episode Details
Back to Episodes
#503: It’s not 85% HTML
Episode 503
Published 3 weeks, 2 days ago
Description
Topics covered in this episode:
- Your GitHub language bar is lying (how to fix it)
- Python Typing Survey 2026: developers mix type checkers, and AI is writing the hints
- Flask Vibe - Build Apps You Can Understand
- Python on my wrist: MicroPython on a PineTime
- Extras
- Joke
About the show
Sponsored by us! Support our work through:
- Our courses at Talk Python
- Consulting from Six Feet Up Connect with the hosts
- Michael: Mastodon / BlueSky / X / LinkedIn
- Calvin: Mastodon / BlueSky / X / LinkedIn
- Show: Mastodon / BlueSky / X Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesday at 7am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Michael #1: Your GitHub language bar is lying (how to fix it)
GitHub's language bar comes from Linguist, which counts every tracked byte in the repo. Michael's chameleon-rs project read as 75.5% HTML because committed docs-site output and test suites outweighed the Rust engine. Three .gitattributes attributes changed the story: linguist-generated for build output, linguist-vendored for an upstream test suite, and linguist-detectable=false for tests and benchmarks on both sides. The bar now shows the real mix, roughly 62% Rust and 38% Python.
- That bar is one of the first things people see on your repo; if generated files skew it, a few lines of .gitattributes tell the truth.
- The bar is byte-proportional, so a 9 MB committed docs build can make a Rust project read as mostly HTML
- linguist-generated hides build output and collapses those diffs in pull requests too
- linguist-vendored covers copied-in code; linguist-detectable=false drops anything from the stats
- chameleon-rs went from 75.5% HTML to roughly 62% Rust and 38% Python after a few lines of confi