Getting this on `./pants_from_sources dependencies...
# development
w
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
w
Ah, okay - ran into this while trying to use the
pyright
plugin changes