-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drop support for Python 3.7 #8609
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8609 +/- ##
==========================================
- Coverage 95.92% 95.81% -0.11%
==========================================
Files 174 174
Lines 18415 18317 -98
==========================================
- Hits 17664 17551 -113
- Misses 751 766 +15
|
I would defer this choice to pylint-dev/astroid#2137 (comment), as I think this is where we will make the first/final decision about this. |
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 would expect some change in the functional tests too (py 3.7 exclusive tests that now need a py-version to run).
@@ -108,6 +108,7 @@ disable= | |||
format, | |||
# We anticipate #3512 where it will become optional | |||
fixme, | |||
consider-using-assignment-expr, |
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 considered that. This is (also) going to be a nice cleanup !
This is just a first step. Besides the test cases, there are other areas which could be improved. Had to start somewhere.
Yeah, we could start using them with |
Regarding the functional tests we could have a regression if it never run in the CI, right ? (Added #6306 (comment) so we do not forget later) |
However, as this is the only small regression I still think dropping 3.7 now is worth it. If someone really depended on it, he can continue to use pylint |
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 think the primer fail is expected in this PR. I'm a little worried that all MR will need to be rebased on main after we merge but I don't think we have a way to avoid that.
Yeah, that's just the nature of these cleanups. |
Description
Python 3.7 will reach its EOL in two months (2023-06-27). I think it would make sense to drop support with the next release
3.0
. That will allow us to cleanup even more old code.I'm not proposing to remove the ability to lint
3.7
compatible code. If users want that, they can still setpy-version=3.7
.Refs #6306