Hi. I wonder if there's a way for pants to list al...
# general
a
Hi. I wonder if there's a way for pants to list all third-party imports that aren't declared in requirements (in a python project). I'd like to fix such errors, and it would be helpful to be able to automate the searching process
1
We depend on such dependencies in two ways: as transitive dependencies of other libraries, and also as our own imports. Even though it works right now, I'd like to explicitly list the libraries in requirements
c
Or rather, they might satisfy the usual reasons for listing transitive dependencies, like being able to pin their versions or enumerate them
b
Set it to
error
, if any
import
doesn't match a firstparty or top-level thirdparty Pants'll error
(This is the exact case I added this feature 😛 )
a
Great! Thank you 🙂