Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hoefling/pre-commit-pytype

Wrapper to enable pre-commit for pytypes
https://github.com/hoefling/pre-commit-pytype

Last synced: 18 days ago
JSON representation

Wrapper to enable pre-commit for pytypes

Awesome Lists containing this project

README

        

# pre-commit for pytype
Wrapper to enable pre-commit for `pytype`

## Usage:
In your `.pre-commit-config.yaml` include the following block.

```
- repo: https://github.com/hoefling/pre-commit-pytype
rev: 2024.10.11
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 (example below).

```
- repo: https://github.com/hoefling/pre-commit-pytype
rev: 2024.10.11
hooks:
- id: pytype
args: []
```