jendrikseipp/vulture: Find dead Python code (github.com)
from jnovinger@programming.dev to python@programming.dev on 29 Mar 2024 14:37
https://programming.dev/post/12087293

The repo also links to some similar tools, like coveragepy, uncalled, and dead.

#python

threaded - newest

TheBest@midwest.social on 29 Mar 2024 15:02 next collapse

I recently gotten into Python programming for funzies with ChatGPT as my tutor. Definitely need a tool like this.

danielquinn@lemmy.ca on 29 Mar 2024 15:56 next collapse

If you ensure 100% test coverage, you don’t need this ;-)

gedhrel@lemmy.world on 29 Mar 2024 16:16 collapse

What if your test is the only thing that calls a function?

danielquinn@lemmy.ca on 29 Mar 2024 19:09 collapse

Maybe I’m misunderstanding vulture. My impression was that it’s meant to be run in your CI, which would mean it’s only privy to code executed by your tests. If it actually attached to production sessions, then yeah that’s pretty handy.

Cwilliams@beehaw.org on 29 Mar 2024 16:26 collapse

Why would you ever write something like this in python of all languages!? Python is sooo sloooow

Oha@lemmy.ohaa.xyz on 09 Apr 2024 09:22 collapse

Why would you ever do machine learning with python? Its sooo slow!!!

Cwilliams@beehaw.org on 09 Apr 2024 18:03 collapse

Seriously