-
-
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
Do not append namespace packages to sys.path #6405
Conversation
Pull Request Test Coverage Report for Build 2250284307
💛 - Coveralls |
I think both approach are not mutually exclusive, the option is a permanent fix to let the user tell pylint what to do. But we can still make namespace automated detection better so users don't have to use the option as often. |
I think we should try to avoid adding the option. There is no inherent reason why we wouldn't be able to mimic the import mechanics of |
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change look nice but this is a tricky to tests and easy to break. I'm not super confident. Probably a good thing that we release the beta first here.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, looks great and fails on main!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is clever ! Do we release the beta right now or should we first release the current patch versions of astroid and pylint ?
I think we can release the beta. I don't know of any blockers in |
This reverts commit 603be84.
doc/whatsnew/<current release.rst>
.and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Counter to #5235.
This is not finished yet as for some reason running
pylint
in pre-commit does not allow this fix. However, I think we should explore if this is a possible solution to the problem. There should be a way to determine whether something is a namespace package, thepython
import statement can do so as well.Closes #5226, Closes #2648