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
In #5205, MyPy gained support for declaring configuration in the TOML format, but only in pyproject.toml. I propose supporting configuration via a stand-alone TOML document, such as mypy.toml or .mypy.toml.
Pitch
This parallels, and perhaps would eventually replace, configuration via mypy.ini. This is most useful when checking non-project code, such as in Python (python/cpython#129708), where we have several distinct mypy.ini files to support type-checking different directories of a larger project. It may be useful for mono-repo layouts, where again the use of pyproject.toml is undesirable. Finally, this would be useful to keep tool configuration to independent files — in the Sphinx project, there are several hundred lines of mypy configuration in pyproject.toml, dominating the content of the file.
A
The text was updated successfully, but these errors were encountered:
The .ini format also has its limitations. Like not supporting comments at the end of a line and a weird exclude.
Additional benefits includes: a single toml formatter (rather than needing an ini formatter just for this config). And IntelliSense could be provided through a schema.
Feature
In #5205, MyPy gained support for declaring configuration in the TOML format, but only in
pyproject.toml
. I propose supporting configuration via a stand-alone TOML document, such asmypy.toml
or.mypy.toml
.Pitch
This parallels, and perhaps would eventually replace, configuration via
mypy.ini
. This is most useful when checking non-project code, such as in Python (python/cpython#129708), where we have several distinctmypy.ini
files to support type-checking different directories of a larger project. It may be useful for mono-repo layouts, where again the use ofpyproject.toml
is undesirable. Finally, this would be useful to keep tool configuration to independent files — in the Sphinx project, there are several hundred lines of mypy configuration inpyproject.toml
, dominating the content of the file.A
The text was updated successfully, but these errors were encountered: