Skip to content

Commit

Permalink
✨ 更新 pre-commit 工作流,移除虚拟环境依赖并直接使用系统 Python 执行 pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Dec 12, 2024
1 parent 9e6cf7e commit 20eeb57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 20eeb57

Please sign in to comment.