-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Auto-detect minimal Python version #688
Comments
If a new version of python is out you will need to modify the file no ? Can we erase the check <= 11 ? |
Oh I see. I initially added that upper limit to make sure I'll not feed But I'm OK with removing that limit. It might be helpful to have it fail in this time-frame, as a reminder to have Just fixed this in kdeldycke/workflows@211f3a4 |
Does PyUpgrade have a error if I enter --py-314-plus ? |
It does:
|
I thinks you change need to add your code here : https://github.com/asottile/pyupgrade/blob/main/pyupgrade/_main.py |
no thanks -- that would involve reading configuration files of which I don't want anything to do with that complexity |
OK no worries, I understand the policy of keeping |
Oh, and thanks @asottile for |
My proposition is to have
pyupgrade
auto detect the minimal Python version targeted by a project and set by itself the--py3-plus
/--py36-plus
/(...)
/--py311-plus
option flags.I hacked this autodetection feature in my GitHub workflows by inspecting the
pyproject.toml
.Note this feature is also considered by
black
and discussed formypy
.The text was updated successfully, but these errors were encountered: