From cffc1cad8584c770de94dff87d519d1304f647d5 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 15:46:50 +0800 Subject: 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. --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.pre-commit-config.yaml') 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 -- cgit v1.2.3-70-g09d2