https://pantsbuild.org/ logo
r

ripe-cpu-85141

07/31/2022, 2:28 AM
Hello, I was wondering: can I use pants to detect unused files? I'd like to have that check to ensure all dependencies are taken into account and that I don't have dead modules still around. I was imagining something like any python_source target that isn't a dependency of a package/test goal would be reported. Is it possible and is that a good idea?
b

bitter-ability-32190

07/31/2022, 5:42 PM
Try out the
peek
goal if you want structured output for dependencies. Alternatively you might consider a plugin if you want to do this more "natively"
3 Views