-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import detection and resolution via Python resolver for pylint #9103
Comments
Have you taken a look at the resolver we aded in |
@charliermarsh is the Sure would be nice to get |
@charliermarsh In my opinion it should be implemented as well. We just missed a bug due to faulty import and ruff didn't catch the issue. Would be great to have a compatible implementation in our setup as ruff is our primary linter here. django-cms/django-cms#7992 |
@MichaReiser Can this be prioritised, please? |
I'm interested in implementing
no-name-in-module
(E0611) andimport-error
(E0401) for pylint (#970).I think this would handle this issue #6327 but as mentioned in that issue thread it might get a little complex with things like virtual environments.
I've taken a brief look at the resolver but wondering if there has been any other work into this issue before continuing. A couple of my thoughts:
ImportError
andModuleNotFoundError
, although it will return all errors, not just the first, with a line likeimport os.foobar
triggering both errorsimport-error
at least)? Could this ever be fully trustworthy? I'm guessing not.no-name-in-module
, especially when it comes to things like c libraries), are there ways to optimize/minimize python usage/runtime?The text was updated successfully, but these errors were encountered: