2021-09-30 10:54:42 +08:00
|
|
|
default_language_version:
|
|
|
|
|
python: python3.9
|
2021-09-24 21:05:12 +08:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-09-30 10:54:42 +08:00
|
|
|
rev: v4.0.1
|
2021-09-24 21:05:12 +08:00
|
|
|
hooks:
|
2021-09-30 10:54:42 +08:00
|
|
|
- id: check-ast
|
|
|
|
|
- id: check-docstring-first
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-case-conflict
|
2021-09-24 21:05:12 +08:00
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- repo: https://github.com/psf/black
|
2021-09-30 10:54:42 +08:00
|
|
|
rev: 21.9b0
|
2021-09-24 21:05:12 +08:00
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
args: [--config=pyproject.toml]
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2021-09-30 10:54:42 +08:00
|
|
|
rev: 5.9.3
|
2021-09-24 21:05:12 +08:00
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
|
|
|
|
files: "\\.(py)$"
|
|
|
|
|
args: [--settings-path=pyproject.toml]
|
2021-09-30 10:54:42 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
|
rev: 'v0.910'
|
|
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|