Describe the bug
- have
foo.py and foo_test.py in the repo, with the test importing the foo module
- delete
foo.py
- run
pants --changed-since=main --changed-dependents=transitive check
Expected behavior:
- type checking should run on
foo_test.py and should fail due to the unknown import of foo
Actual behavior:
- pants prints a warning about being unable to infer the dependencies of the
foo import, but the check goal succeeds
The same problem applies to pants test: I expect foo_test.py to be executed, but it is not.
Pants version
2.31.0.dev3 with the pants.backend.experimental.python.typecheck.pyright backend
OS
tested on Linux
Describe the bug
foo.pyandfoo_test.pyin the repo, with the test importing thefoomodulefoo.pypants --changed-since=main --changed-dependents=transitive checkExpected behavior:
foo_test.pyand should fail due to the unknown import offooActual behavior:
fooimport, but the check goal succeedsThe same problem applies to
pants test: I expectfoo_test.pyto be executed, but it is not.Pants version
2.31.0.dev3with thepants.backend.experimental.python.typecheck.pyrightbackendOS
tested on Linux