From 20eeb5724f64cf188463e66215b012ab50eef256 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Fri, 13 Dec 2024 03:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0=20pre-commit=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E7=8E=AF=E5=A2=83=E4=BE=9D=E8=B5=96=E5=B9=B6=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BD=BF=E7=94=A8=E7=B3=BB=E7=BB=9F=20Python=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-commit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a7d554c1..1ea2d742 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -18,8 +18,9 @@ jobs: - name: Install dependencies run: | python -m pip install pdm + pdm config python.use_venv false pdm install --no-lock - .venv/bin/python -m pre-commit install + pre-commit install - name: Run pre-commit - run: .venv/bin/python -m pre-commit run --all-files + run: pre-commit run --all-files