mypy configuration¶
Sadly, this can’t be placed in pyproject.toml - Project configuration, because Black and Poetry uses incompatible TOML readers (I think mypy uses an INI-file reader instead). Specifically:
mypy wants
files = .
, while Poetry requires the (correct)files = "."
.mypy wants a heading named
[mypy-bottle.*]
, but Poetry requires the (correct)["mypy-bottle.*"]
.mypy wants
ignore_missing_imports = True
, while Poetry requires the (correct)ignore_missing_imports = true
.
This section must be present.
See files.
The following libraries lack annotations. Ignore missing imports.