Replies: 1 comment 3 replies
-
A strategy that works quite well when dealing with migrating config options is to set your config file with the current strictness you have: [tool.mypy]
disallow_any_generics = true Then invoke mypy with
That's more related to python/mypy/issues/12286 I think. I think this strategy covers the first two options fairly well, but would be based if this multi run happened by default, and maybe a config to disable it. Is there any use-case for different configuration profiles other than these three?
Mypy ignores unrecognized configuration options with a warning #158 |
Beta Was this translation helpful? Give feedback.
-
Is there currently any way of setting up multiple configurations for a project (other than having 2 configuration files and using
--config-file
to select which to use)?Some situations where I think this may be useful:
Some things to consider:
[tool.basedmypy]
instead of[tool.mypy]
for any basedmypy specific configuration)?Beta Was this translation helpful? Give feedback.
All reactions