Wrapper to enable pre-commit for pytypes
In your .pre-commit-config.yaml
include the following block.
- repo: https://github.com/mattseymour/pre-commit-pytype
rev: '2020.10.8'
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/mattseymour/pre-commit-pytype
rev: '2020.10.8'
hooks:
- id: pytype
args: []