quaint-telephone-89068
12/02/2022, 8:39 AMBy the way, I'd prefer to also add an advanced option toto allow for custom dependency parsers. I believe this would be helpful in larger codebases where you might want to have custom rules, e.g. local imports in functions can be strong or weak dependencies etc.python-infer
Would an option@happy-kitchen-89482 wrote:(defaultdependency_parser-> use the pants internal) where one could provide a path to a python script be ok for this, or would you prefer a different naming or a completely different solution?None
That's a really interesting idea! I'd be open to such an option. The main thing would be that the script has to be completely self-contained (no dependencies outside the stdlib). But that seems like a reasonable constraint, at least initially.Also relevant, but going in another direction: #17477 (comment) pantsbuild/pants