Skip to content

Sync mypy config between pre-commit and pyproject.toml #10

Description

@f3rdy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions