-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
an option to use the currently executing python version to determine what the rewrite target is #768
Comments
For posterity: my main motivation here is that I use pyupgrade 100% via pre-commit and currently have to change both the default Python version to run all tools and the target version for pyupgrade whenever I upgrade an app to a newer Python version. |
maybe have a fallback of detected version if no |
no, unexplainable implicit behaviours are bad -- this will be an explicit setting |
perhaps a mutually exclusive option named |
I think that we can use a parameter parser.add_argument(
'--currpy-plus',
action='store_const', dest='min_version', const=sys.version_info[:2],
) |
OK I think I would like to modify my feature request!
|
Using
Also: |
discussed a bit with @hynek on twitter -- mostly need to bikeshed a name
basically an alternative to the
--py36-plus
options but instead uses the currently running pythonThe text was updated successfully, but these errors were encountered: