Description
mypy pre-commit hook uses --ignore-missing-imports as a CLI argument, but this flag is not present in the [tool.mypy] section of pyproject.toml. This means mypy behaves differently locally vs. in pre-commit.
Proposed Solution
Remove --ignore-missing-imports from .pre-commit-config.yaml and handle missing imports via [[tool.mypy.overrides]] in pyproject.toml (already done for yaml.*).
Files
.pre-commit-config.yaml (line 23)
pyproject.toml (mypy overrides section)
Priority
P2
Description
mypy pre-commit hook uses
--ignore-missing-importsas a CLI argument, but this flag is not present in the[tool.mypy]section ofpyproject.toml. This means mypy behaves differently locally vs. in pre-commit.Proposed Solution
Remove
--ignore-missing-importsfrom.pre-commit-config.yamland handle missing imports via[[tool.mypy.overrides]]inpyproject.toml(already done foryaml.*).Files
.pre-commit-config.yaml(line 23)pyproject.toml(mypy overrides section)Priority
P2