You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let mypy extract the minimal Python version of a project from its pyproject.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 for black and pyupgrade.
kdeldycke
changed the title
Auto-detect minimal Python for --python-version x.y option
Auto-detect minimal Python for --python-version option
Jul 31, 2022
You can set python_version in the tool.mypy section of pyproject.toml. We're not going to root around in poetry's configuration for that kind of thing.
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: