Mirror of mypy for pre-commit.
Using mypy with pre-commit:
Add this to your
- repo: https://github.com/pre-commit/mirrors-mypy rev: '' # Use the sha / tag you want to point at hooks: - id: mypy
By default, mypy will run with
mypy from an isolated virtualenv so it won't have access to those.
To change the arguments, override the
args as follows:
hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports]