flaky-artist-57016
01/16/2023, 7:14 PMconda environment. This means we have to add python_requirement entries for all third-party dependencies used by goals like test and package to our root BUILD file or python_infer throws UnownedDependencyError . I’d like to run ./pants dependencies on our tests to check that Pants can infer all the third-party dependencies successfully. What is the best way to do this?enough-analyst-54434
01/16/2023, 7:16 PMenough-analyst-54434
01/16/2023, 7:16 PMflaky-artist-57016
01/16/2023, 7:19 PMconda. I can try to dig into conda integration when I find some time.
In the meantime, is there a way to tell ./pants dependencies to only run on tests and imported modules? I thought about adding tags=["tests"] to python_sources in test directories, but my understanding is that this will only check dependencies for ancillary Python files in those directories. Is it possible to pass python_tests as a target?enough-analyst-54434
01/16/2023, 7:20 PM./pants help filter You can always mix in ./pants --filter-xxx=yyy <goal>flaky-artist-57016
01/16/2023, 7:20 PMenough-analyst-54434
01/16/2023, 7:20 PMenough-analyst-54434
01/16/2023, 7:21 PM./pants peek and jqflaky-artist-57016
01/16/2023, 7:22 PM--filter-target-type does the trick.