matangover/mypy-vscode

vscode mypy doesn't respect `tool.mypy` table in pyproject.toml

Closed this issue · 1 comments

[tool.poetry]
name = "sampleproject"
version = "0.1.0"
description = ""
authors = ["Ravencentric <78981416+Ravencentric@users.noreply.github.com>"]
readme = "README.md"
packages = [{include = "sampleproject", from = "src"}]

[tool.poetry.dependencies]
python = "^3.12"
mypy = "^1.11.1"

[tool.mypy]
strict = true
pretty = true
exclude = "tests/"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

image
VS Code's mypy complaints about type-hints in tests/a.py while mypy cli passes with no issues

I just realized I made this in the wrong mypy repo, apologies.