Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hoefling/pre-commit-pytype
- Owner: hoefling
- License: mit
- Created: 2021-08-27T20:50:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T21:26:15.000Z (about 1 year ago)
- Last Synced: 2024-01-05T22:38:58.790Z (about 1 year ago)
- Language: Python
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: []
```