-
-
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
Update astroid
to 2.12
#7153
Update astroid
to 2.12
#7153
Conversation
This comment has been minimized.
This comment has been minimized.
Pull Request Test Coverage Report for Build 2663062215
💛 - Coveralls |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
@Pierre-Sassoulas It's more clear to me now: I think it's a packaging problem with https://github.com/Pierre-Sassoulas/contributors-txt, which installs a >>> import tests
>>> tests
<module 'tests' from '/Users/.../new/lib/python3.10/site-packages/tests/__init__.py'> The reason we don't have failures on Linux/MacOS is that those install Would you be willing to look into the packaging issue? |
This comment has been minimized.
This comment has been minimized.
Sure, I'm on it! |
This comment has been minimized.
This comment has been minimized.
I released a new version of |
I wondered about that. Would you be willing to start that PR? |
Yeap, let me try something :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TODO:
|
This comment has been minimized.
This comment has been minimized.
An interesting thing about the cases where we now get a Not sure how much you care about this, but it's there. :D I found it while tinkering about to fix a different problem with running the tests as part of a package build (astroid doesn't like it if you run the tests from the top level of the source tarball but with |
This comment has been minimized.
This comment has been minimized.
Very true. And because that's true, we could probably avoid fiddling with the expected results and just change @DudeNr33 as a |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a6ba060
to
e8043f9
Compare
This comment has been minimized.
This comment has been minimized.
@@ -1,2 +1,2 @@ | |||
R: 1: Cyclic import (input.func_w0401_package.all_the_things -> input.func_w0401_package.thing2) | |||
R: 1: Cyclic import (tests.input.func_w0401_package.all_the_things -> tests.input.func_w0401_package.thing2) |
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.
This is the same thing as the pyreverse stuff, I think - should we change to the cwd-based fix here too?
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.
cwd-based fix in 6fa6e74
Yes, that's fine for me! In reality I'd also expect the user to first |
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.
I only have an open question why two of the pyreverse
tests are now marked as xfail - but as we have a lot of other tests for pyreverse
I think this should not be a blocker, I'm just curious. 😊
doc/user_guide/usage/run.rst
Outdated
As of version 2.15, ``pylint`` will also discover namespace packages but there are some edge | ||
cases still under development (where you might still find ``--recursive=y`` useful). |
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.
I don't quite understand this sentence. From the wording it sounds like it is (in most cases) no longer necessary to use --recursive=y
, yet the preceding sentences all describe the usage with it.
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.
Improved comprehensibility in 63d654c
self, HANDLER: DiadefsHandler, PROJECT: Project | ||
) -> None: | ||
# https://github.com/PyCQA/pylint/issues/2763 | ||
@pytest.mark.xfail |
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.
I haven't tried this myself yet, but why is the xfail necessary here?
The linked issue is about working without __init__.py
files - but the tests/data
has an __init__.py
file?
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.
It's possible I didn't understand the issue. (A good sign I should remove the comment!) I thought since tests
doesn't have an __init__.py
it's possible it would explain why the analysis of tests/data
was not entirely correct. But maybe it's a manifestation of something else. I can remove the comment.
The failure is that only the last member of _should_rels
is found, not all 5.
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.
Removed comments in 916e556
f0406d1
to
6fa6e74
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Prevent `unused-import` for `six.with_metaclass` Update `contributors-txt` to 0.9.0 Co-authored-by: Pierre Sassoulas <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
5922023
to
2b4123a
Compare
Thanks to all for helping push this over the line! |
str's repr is the string, and you don't need a string call in a fstring. Follow-up to pylint-dev#7153 (comment)
🤖 Effect of this PR on checked open source code: 🤖 Effect on django:
The following messages are no longer emitted:
Effect on pandas:
The following messages are no longer emitted:
Effect on pytest:
Effect on sentry:
The following messages are no longer emitted:
This comment was generated for commit 2b4123a |
Type of Changes
Fixes #5935
(among other issues to be closed shortly with regression tests in separate PRs, see label "Needs astroid update")
The main change relevant now is
astroid
's better support for detecting namespace packages.