Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 565 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 565 Bytes

pre-commit for pytype

Wrapper to enable pre-commit for pytypes

Usage:

In your .pre-commit-config.yaml include the following block.

-   repo: https://github.com/sniperwolf/pre-commit-pytype
    rev: '2023.5.24'
    hooks:
    -   id: pytype

If you use setup.cfg instead of -config=pytype.cfg to run pytype then you will also need to include a empty args attribute in the pytype hook (exmple below).

-   repo: https://github.com/sniperwolf/pre-commit-pytype
    rev: '2023.5.24'
    hooks:
    -   id: pytype
        args: []