aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-16 15:46:50 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-16 15:46:50 +0800
commitcffc1cad8584c770de94dff87d519d1304f647d5 (patch)
tree75fcb16d847b80c9f9ed2bfb613d25bba131c635
parentbeeb032bb4e92262a989ac968040300b93daac21 (diff)
downloadDropOut-cffc1cad8584c770de94dff87d519d1304f647d5.tar.gz
DropOut-cffc1cad8584c770de94dff87d519d1304f647d5.zip
chore: update pre-commit configuration to enable autofix for PRs
Added autofix settings to the pre-commit configuration, allowing automatic fixes for issues detected by hooks. Reorganized the repository structure for clarity and removed redundant entries.
-rw-r--r--.pre-commit-config.yaml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0a9b345..b9d50cd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,7 +1,12 @@
minimum_prek_version: '0.2.28'
+ci:
+ autofix_prs: true
+ autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit hooks [skip ci]"
+
repos:
- - repo: builtin
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v5.0.0
hooks:
- id: check-json
exclude: ^ui/tsconfig.*\.json$
@@ -12,10 +17,6 @@ repos:
- id: end-of-file-fixer
- id: check-merge-conflict
- id: detect-private-key
-
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v5.0.0
- hooks:
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit