-
-
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 dependency #4111
Conversation
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.
Agree. Another benefit we would get is that during developement pylint's CI would not break because something happened on astroid's master. We can make a merge request to upgrade astroid and while we fix it all MR for pylint can be merged without problem. We just had this problem where MR were accumulating on pylint's side while we were fixing astroid and I think defining astroid version in pylint is the solution.
That's another issue that isn't fixed at the moment. CI still uses the latest astroid commits |
I think it's better to be based on the tag, no ? acb6871 Yes we would have to release astroid more frequently and create a merge request in pylint, but I think the stability of the pylint's continuous integration is worth it. (Also having to try to reproduce with multiple astroid when a bug appear is not ideal) |
Can we merge that after the 2.7.0 release ? It seems it's about optimizing Github Actions, right ? |
As long as the astroid update to 2.5 is included, this one can wait. |
Replaced by #4116 |
Steps
doc/whatsnew/<current release.rst>
.Description
Update required astroid dependency to
astroid==2.5
for the next pylint release.I've also added a short script to fetch the correct astroid hash during CI runs.
Why
==2.5
and not~=2.5
?This is something I would like to discuss here further.
I believe that it might be beneficial to lock it to
2.5
instead of only requiring the minor version to match. Most users probably only define apylint
version in their test requirements. So whenastroid
pushes a new bugfix release, it won't be installed since the requirement is already satisfied. The solution would be to also release a small pylint update the updates the astroid dependency.The only drawback I can think of is, that it might lead to conflicts if another project is also using
astroid
as a dependency but with a different version. Don't know how common that would be. I would imagine most use onlypylint
.Type of Changes
Related Issue
#4055 (comment)