-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add compatibility with astroid inference cache changes #8872
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
Merged
jacobtylerwalls
merged 14 commits into
pylint-dev:main
from
jacobtylerwalls:more-cache-hits
Aug 5, 2023
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0facfb7
Add compatibility with astroid inference cache changes
jacobtylerwalls 077e37d
Pin to astroid commit with inference cache changes
jacobtylerwalls f99875f
fixup! Pin
jacobtylerwalls 80698fc
Add news
jacobtylerwalls 81be03b
Address primer result for properties
jacobtylerwalls 84aebc9
Exclude file from news fragment check
jacobtylerwalls 81a4854
Just cheat and use the astroid issue number
jacobtylerwalls 9e250bb
Fix implementation
jacobtylerwalls b3e563c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 92e135d
See if we can revert this change
jacobtylerwalls a06f9ca
Remove unused code
jacobtylerwalls 0257686
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] dc66fc3
Use root()
jacobtylerwalls c82376d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
``pylint`` runs (at least) ~5% faster after improvements to ``astroid`` | ||
that make better use of the inference cache. | ||
|
||
Refs pylint-dev/astroid#529 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ dependencies = [ | |
# Also upgrade requirements_test_min.txt. | ||
# Pinned to dev of second minor update to allow editable installs and fix primer issues, | ||
# see https://github.com/pylint-dev/astroid/issues/1341 | ||
"astroid>=3.0.0a8,<=3.1.0-dev0", | ||
"astroid @ git+https://github.com/pylint-dev/astroid.git@cf8763a2b8e897ec7c8389906f3cb13714300cd2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can then immediately go up to 3.0.0a9 next, but I wanted to do baby steps first in case more changes are needed. |
||
"isort>=4.2.5,<6", | ||
"mccabe>=0.6,<0.8", | ||
"tomli>=1.1.0;python_version<'3.11'", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be a release blocker?
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 doubt it, since the current situation is better (more deterministic).
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 primer results are looking a lot better.
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.
What's with the
deprecated-typing-alias
messages?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 looks like the junk from #8790 is finally going away!
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.
Btw, I made a stab at the root cause in astroid and made a bit of progress, but there is still a way to go before mergeable.