更新 pre-commit 工作流,使用虚拟环境中的 Python 运行 pre-commit 安装和执行

This commit is contained in:
远野千束(神羽) 2024-12-13 02:59:06 +08:00
parent d543e57238
commit 9e6cf7ecd7

View File

@ -19,7 +19,7 @@ jobs:
run: |
python -m pip install pdm
pdm install --no-lock
pre-commit install
.venv/bin/python -m pre-commit install
- name: Run pre-commit
run: pre-commit run --all-files
run: .venv/bin/python -m pre-commit run --all-files