From 1e9a50f3d96a7572bbb94720c1e639b823d6d71f Mon Sep 17 00:00:00 2001 From: ooooo <3164076421@qq.com> Date: Tue, 8 Sep 2026 22:15:21 +0800 Subject: [PATCH] ci(hooks): use managed Python environments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 🔧 CI/CD - Run check-conflict-markers and format-ascii-boxes in pre-commit-managed Python environments. - Explicitly select Python 3 for both local hooks. --- .pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 546aab25..e0bd36f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,8 @@ repos: - id: check-conflict-markers name: check-conflict-markers entry: python .pre-commit-hooks/check_conflict_markers.py - language: system + language: python + language_version: python3 types: [text] exclude: | (?x)^( @@ -66,7 +67,8 @@ repos: - id: format-ascii-boxes name: format-ascii-boxes entry: python .pre-commit-hooks/format_ascii_boxes.py - language: system + language: python + language_version: python3 files: \.md$ # Gitleaks - Secret detection