Skip to content

Add a pre-commit hook #14618

Closed as not planned
Closed as not planned
@GideonBear

Description

@GideonBear

Feature

Add a pre-commit hook to mypy (see mirrors-mypy/.pre-commit-hooks.yaml).
The only major roadblock is building it using mypyc, but that could use mypy_mypyc-wheels.

Pitch

Currently, to use mypy as a pre-commit hook, you need to use mirrors-mypy. It works fine, the only problem is you're not able to use arbitrary commits or branches (including master), just versions released on PyPI. If mypy were to add pre-commit hooks to the repo itself, it would be possible.


Also see pre-commit/mirrors-mypy#80

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions