clean-night-52582
04/22/2021, 9:58 PMclean-night-52582
04/22/2021, 9:59 PMhundreds-father-404
04/22/2021, 10:02 PM./pants filter --target-type=pex_binary,python_distribution,archive :: | xargs ./pants dependees --transitive --closed
Now, find the set difference of something like ./pants list :: or ./pants filter --targget-type=python_library ::, then subtract the previous result. Then on those remaining targets, ./pants filedeps to see which files they correspond toenough-analyst-54434
04/22/2021, 10:04 PMcomm is magic for stuff like this.hundreds-father-404
04/22/2021, 10:06 PMsubprocess.run() + its set data type, but yeah comm allows you to stick to bashclean-night-52582
04/22/2021, 10:32 PMclean-night-52582
04/22/2021, 10:32 PMhundreds-father-404
04/22/2021, 10:33 PM./pants dependees is one of my fav features of Pants for that exact reason, I love deleting codeclean-night-52582
04/23/2021, 12:12 AMtest argument to the targets that are python_library that would block them from being imported into nontest root targets? It could make this a little easier. I'm currently adding tags = {'test-only'} to those libs.hundreds-father-404
04/23/2021, 12:13 AMpython_tests target from a python_library targetclean-night-52582
04/23/2021, 12:24 AM