Coverage.py and third-party code

24 · Ned Batchelder · April 13, 2021, 2:41 a.m.
Summary
I’ve made a change to coverage.py, and I could use your help testing it before it’s released to the world. tl;dr: install this and let me know if you don’t like the results: pip install coverage==5.6b1 What’s changed? Previously, coverage.py didn’t understand about third-party code you had installed. With no options specified, it would measure and report on that code, for example in site-packages. A common solution was to use --source=. to only measure code in the current directory tree. Bu...