2023-01-31 15:56:11 +08:00
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
autoupdate_commit_msg: "pre-commit: bump repositories"
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-05-07 10:51:59 +08:00
|
|
|
rev: v4.4.0
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
|
|
|
- id: check-builtin-literals
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
exclude: tests/packages/test-(bad-syntax|no-permission)/pyproject.toml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: double-quote-string-fixer
|
2024-05-07 10:51:59 +08:00
|
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
|
|
rev: v0.14
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
2024-05-07 10:51:59 +08:00
|
|
|
- id: validate-pyproject
|
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
|
|
rev: 23.7.0
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/asottile/blacken-docs
|
2024-05-07 10:51:59 +08:00
|
|
|
rev: 1.16.0
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: blacken-docs
|
2024-05-07 10:51:59 +08:00
|
|
|
additional_dependencies: [black==23.7.0]
|
2023-01-31 15:56:11 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-05-07 10:51:59 +08:00
|
|
|
rev: "v3.0.3"
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2024-05-07 10:51:59 +08:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: v0.0.287
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
2024-05-07 10:51:59 +08:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --format, grouped, --show-fixes]
|
2023-01-31 15:56:11 +08:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2024-05-07 10:51:59 +08:00
|
|
|
rev: "v2.2.5"
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
args: ["-L", "sur"]
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
2024-05-07 10:51:59 +08:00
|
|
|
rev: "v1.10.0"
|
2023-01-31 15:56:11 +08:00
|
|
|
hooks:
|
|
|
|
- id: rst-backticks
|
|
|
|
- id: rst-directive-colons
|
|
|
|
- id: rst-inline-touching-normal
|
2024-05-07 10:51:59 +08:00
|
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
|
|
|
rev: "1.3.1"
|
|
|
|
hooks:
|
|
|
|
- id: tox-ini-fmt
|