VS Code does this for me.
What use case is this after? Linting in CI or similar?
What use case is this after? Linting in CI or similar?
I'd love a deeper way to identify and selectively reduce the cruft from projects though. For example currently I have about 180 dependencies in my project's .venv - most of them transitive.
These include things like the google-auth library when there is no code in my project that would ever need to talk to Google.
Mostly this is just wasteful and not a big issue, but then come the conflicting dependencies you need to resolve by pinning version numbers. This is doubly annoying if you have no idea what the dependency is needed for or even if it's needed at all.
This is not just a python issue, it's apparent in all languages I've worked in.