2023-11-11 20:14:35 +08:00
|
|
|
fail_fast: false
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.5.0
|
|
|
|
hooks:
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
2023-12-20 09:27:31 +08:00
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
2023-12-12 18:51:43 +08:00
|
|
|
rev: 23.12.0
|
2023-11-11 20:14:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2023-12-20 09:27:31 +08:00
|
|
|
language_version: python3.11
|
|
|
|
args: ["--config", "pyproject.toml"]
|
2023-11-11 20:14:35 +08:00
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-12-18 21:06:26 +00:00
|
|
|
rev: 5.13.2
|
2023-11-11 20:14:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: [--settings-path, "./pyproject.toml"]
|
|
|
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-12-18 21:06:26 +00:00
|
|
|
rev: v0.1.8
|
2023-11-11 20:14:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|