.pre-commit-config.yaml
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: '23.9.1'
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: '5.12.0'
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.4.0'
hooks:
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/abravalheri/validate-pyproject
rev: 'v0.14'
hooks:
- id: validate-pyproject
- repo: local
hooks:
- id: stubgen
name: check API stub files
entry: scripts/stubgen.py
description: check if stub files of the APIs are up-to-date
language: script
types: [python]