update precommit

This commit is contained in:
MaiziXiao 2025-05-27 10:30:59 +00:00
parent fb49988683
commit b1347970e0

View File

@ -91,7 +91,7 @@ repos:
- linkify-it-py
exclude: configs/
- repo: https://github.com/myint/docformatter
rev: v1.7.7
rev: v1.3.1
hooks:
- id: docformatter
args: ["--in-place", "--wrap-descriptions", "79"]
@ -116,6 +116,12 @@ repos:
args:
- --root_folder
- opencompass/configs/datasets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.23.1
hooks:
- id: gitleaks
entry: "gitleaks dir"
args: ["--verbose", "--redact=50"]
# - repo: https://github.com/open-mmlab/pre-commit-hooks
# rev: v0.2.0 # Use the ref you want to point at
# hooks: