Utilise pyupgrade in pre-commit hooks #8266
Unanswered
marksweb
asked this question in
Ideas & Suggestions
Replies: 1 comment 3 replies
-
I'd rather we just make any changes at the point of removing older Python versions, rather than adding tooling to the workflow. We could certainly consider dropping Python 3.5 at this point, yes. I'd be interested in seeing any neatening up changes which that would allow. If |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There may be good reason that it's not part of the hooks in use, but having seen #8226, it seems like a good idea to run pyupgrade in the pre-commit hooks. I can't see any existing discussion on it, besides dropping python 2 support in 2019.
Running an
--all-files
would prevent the need for people to go over the project with change like above and also catch all potential efficiency improvements.Under the current project setup with python 3.5 support, the changes are fairly minor - only 28 files impacted. If python 3.5 support was dropped (👀), that expands to 48 files. So the reviews wouldn't be too painful, especially because some of these are actually resolved by #8226
Just revisiting this after someone raised the fact that Python 3.6 hits EOL towards the end of December, therefore dropping 3.5 is a no brainer & perhaps dropping 3.6 should also be considered if it's official security support has ended.
Beta Was this translation helpful? Give feedback.
All reactions