-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 for --python-version
option
#13294
Labels
Comments
kdeldycke
changed the title
Auto-detect minimal Python for
Auto-detect minimal Python for Jul 31, 2022
--python-version x.y
option--python-version
option
kdeldycke
added a commit
to kdeldycke/workflows
that referenced
this issue
Jul 31, 2022
You can set |
OK no worries, I understand the decision. I'll keep my minimal version detection confined to my CI scripts. |
kdeldycke
added a commit
to kdeldycke/workflows
that referenced
this issue
Aug 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature
Let
mypy
extract the minimal Python version of a project from itspyproject.toml
file and auto-set its--python-version x.y
option flag.Pitch
This would help simplify the maintenance of CI jobs as we will have
mypy
picks up the right setting by itself. A similar feature is being discussed forblack
andpyupgrade
.I already hacked this autodetection feature for
pyupgrade
in my GitHub workflows by inspecting thepyproject.toml
.The text was updated successfully, but these errors were encountered: