Hacker News new | ask | show | jobs
by LordKeren 824 days ago
I inherited a legacy code base that suddenly had a lot more attention on it and had to be rapidly overhauled. Deptry was invaluable for quickly removing a large amount of unused dependencies.

The newest update was a delightful surprise since deptry is now fast enough to run during automated pull-request analysis via GitHub actions

1 comments

Thanks for the positive feedback! Happy to hear that it turned out to be useful for you.
Does it provide a tree output of the dependencies as they do in Scala/Java land?
If I understand your question correctly; no, that is out of scope for deptry. Many of the dependency management tools already provide a way to do so, e.g. for PDM `pdm list --tree`.
You could provide diff of current tree vs tree after applying your suggested removals? It is more complex than that ?
Use pipdeptree for that