-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
astral-sh/ruff
#18286Labels
help wantedContributions especially welcomeContributions especially welcomeimportsModule resolution, site-packages discovery, import-related diagnosticsModule resolution, site-packages discovery, import-related diagnostics
Description
Summary
I'm maybe not sure how to best class this error, but when using pytest its obviously quite common to import from conftest.py in a test file, in the root or any subdirectory directory of the tests directory.
in a test file like tests/test_foo.py
from conftest import ... # error[unresolved-import]: Cannot resolve imported module `conftest`we see this error.
I am aware that this code (and practice) is not ideal. But i imagine many users may have this issue when type checking tests directory.
Also, perhaps this is not a bug, but I think something useful to think about
Version
0.0.0-alpha.8
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedContributions especially welcomeContributions especially welcomeimportsModule resolution, site-packages discovery, import-related diagnosticsModule resolution, site-packages discovery, import-related diagnostics