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
This would be very useful in CI pipelines while spinning up matrices of tests against multiple Python versions. aka, having the benefit of using one config file vs. specifying the version to check against in every job.
Feature
The repo I work within support Python 3.7 - 3.9 right now. I use mypy to check the repo's typing.
Currently, in my
pyproject.toml
config, I havepython_version = 3.7
.I would like to allow something like Tox's
envlist
, which allows one to call out multiple Python versions to check.I don't care about checking bugfix versions of Python, only minor versions (e.g. 3.7, 3.8, 3.9).
Workaround
A workaround is to invoke mypy multiple times, passing the Python version as a command line arg on each invocation:
Pitch
This would be a convenience feature for developers using mypy in repos that support multiple versions of Python.
I imagine the config looking something like this:
I am not familiar with mypy's internals, I imagine this could be a difficult feature to add. Just thought I would throw in my two cents.
The text was updated successfully, but these errors were encountered: