Mirror of mypy for pre-commit
Clone or download
pre-commit Mirror: 0.660
Latest commit 55201b4 Jan 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.pre-commit-hooks.yaml v0.610-1 Jun 14, 2018
.version Mirror: 0.660 Jan 17, 2019
README.md Add a README May 30, 2018
setup.py Mirror: 0.660 Jan 17, 2019


mypy mirror

Mirror of mypy for pre-commit.

For pre-commit: see https://github.com/pre-commit/pre-commit For mypy: see https://github.com/python/mypy

Using mypy with pre-commit:

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: ''  # Use the sha / tag you want to point at
    -   id: mypy

By default, mypy will run with mypy --ignore-missing-imports, pre-commit runs mypy from an isolated virtualenv so it won't have access to those. To change the arguments, override the args as follows:

    -   id: mypy
        args: [--no-strict-optional, --ignore-missing-imports]