Closed thisi5patrick closed 3 months ago
Can you try to quote the table header?
["mypy-foobar.*"]
ignore_missing_imports = true
or maybe
[mypy-foobar."*"]
ignore_missing_imports = true
A *
isn't a valid key according to the toml specification https://toml.io/en/v1.0.0#keys
There's also a pyproject.toml
example in the mypy documentation.
I'm closing this issue because it seems mainly about figuring out the right syntax for the mypy configuration in a pyproject.toml (and not mypy.ini)
I have this case where I want to exclude a library from being checked in mypy. Based on mypy's documentation what you should do is add the library as
The problem now is that after adding the library
Vision
frompyobjc-framework-vision
into mypyproject.toml
as such:when running
ruff check .
I get:Ruff version
ruff 0.5.0
Python versionPython 3.12.3