mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
✨ 更新 pre-commit 工作流,移除虚拟环境依赖并直接使用系统 Python 执行 pre-commit
This commit is contained in:
parent
9e6cf7ecd7
commit
20eeb5724f
5
.github/workflows/pre-commit.yml
vendored
5
.github/workflows/pre-commit.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user