Skip to content
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

Support Astroid v3 #126

Merged
merged 6 commits into from
Oct 25, 2023
Merged

Support Astroid v3 #126

merged 6 commits into from
Oct 25, 2023

Conversation

PeterJCLaw
Copy link
Collaborator

@PeterJCLaw PeterJCLaw commented Oct 24, 2023

This builds on #125, adding support & testing for astroid v3. See commits for details.

Fixes #100.

This gets things mostly working but leaves a small number of test
failures, which I'll address in follow-on commits.
This also appears to fix some tests.
This updates a test expectation which is documented as not caring
a great deal about the exact number, so hopefully this is a
reasonable fix to make.
@PeterJCLaw PeterJCLaw marked this pull request as ready for review October 24, 2023 22:34
Comment on lines +29 to +43
astroid-version:
- ''
include:
# Test recent Python on Astroid v2 too (the above natural tests will
# pick up Astroid v3 for these Python versions)
- python-version: '3.8'
astroid-version: '<3'
- python-version: '3.9'
astroid-version: '<3'
- python-version: '3.10'
astroid-version: '<3'
- python-version: '3.11'
astroid-version: '<3'
- python-version: '3.12'
astroid-version: '<3'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't feel the clearest spelling of this, however given the non-overlapping version requirements between Python 2 & 3 it is probably the simplest.

Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
@alexmojaki
Copy link
Contributor

Thanks!

@alexmojaki alexmojaki merged commit ffb885b into gristlabs:master Oct 25, 2023
20 checks passed
@PeterJCLaw PeterJCLaw deleted the astroid-v3 branch October 26, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeprecationWarning: The 'astroid.node_classes' module is deprecated
2 participants