2024-04-27 15:37:56 +08:00
|
|
|
exclude: ^(tests/data)
|
2024-02-29 19:26:35 +08:00
|
|
|
default_language_version:
|
|
|
|
python: python3.10
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-12-11 17:32:18 +08:00
|
|
|
rev: v5.0.0
|
2024-02-29 19:26:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: debug-statements
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2025-02-26 06:51:15 +08:00
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
|
|
rev: v1.29.10
|
|
|
|
hooks:
|
|
|
|
- id: typos
|
|
|
|
args: [--force-exclude]
|
2024-02-29 19:26:35 +08:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2025-02-15 22:51:17 +08:00
|
|
|
rev: v3.19.1
|
2024-02-29 19:26:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-02-15 22:51:17 +08:00
|
|
|
rev: v0.9.6
|
2024-02-29 19:26:35 +08:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args: [--fix]
|
|
|
|
- id: ruff-format
|
2024-07-19 01:39:15 +08:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
2025-02-15 22:51:17 +08:00
|
|
|
rev: v8.23.3
|
2024-07-19 01:39:15 +08:00
|
|
|
hooks:
|
|
|
|
- id: gitleaks
|
2025-02-15 22:50:10 +08:00
|
|
|
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
|
|
|
rev: v1.3.1
|
|
|
|
hooks:
|
|
|
|
- id: zizmor
|