https://pantsbuild.org/ logo
#development
Title
# development
w

wide-midnight-78598

10/15/2022, 5:03 AM
Getting this on
./pants_from_sources dependencies helloworld/translator/translator_test.py
in
example-python
Copy code
00:57:24.50 [WARN] Pants cannot infer owners for the following imports in the target helloworld/translator/translator_test.py:tests:

  * pytest (line: 4)

If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.15/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
This goes away if I add
pytest
to my requirements.txt (
//:reqs#pytest
) - but is that the correct resolution to this? Pytest is provided by pants, so shouldn't this dep be owned or found somewhere?
h

hundreds-father-404

10/15/2022, 12:35 PM
w

wide-midnight-78598

10/15/2022, 12:52 PM
Ah, okay - ran into this while trying to use the
pyright
plugin changes
6 Views