|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.4.0
|
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-builtin-literals
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-json
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: forbid-new-submodules
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
|
|
rev: v1.9.0
|
|
|
|
hooks:
|
|
|
|
- id: python-check-mock-methods
|
|
|
|
- id: python-no-eval
|
|
|
|
- id: python-no-log-warn
|
|
|
|
- id: python-use-type-annotations
|
|
|
|
- id: python-check-blanket-type-ignore
|
|
|
|
- repo: https://github.com/hadialqattan/pycln
|
|
|
|
rev: v2.1.2
|
|
|
|
hooks:
|
|
|
|
- id: pycln
|
|
|
|
args: [ --config=pyproject.toml ]
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: v5.11.3
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 22.12.0
|
|
|
|
hooks:
|
|
|
|
- id: black
|