This repository was archived by the owner on Mar 14, 2026. It is now read-only.
✨ 添加禁用聊天支持 #270
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre-commit checks | |
| on: [push] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install pdm | |
| python -m pip install pre-commit | |
| pdm config python.use_venv false | |
| pdm install --frozen-lockfile --group dev | |
| pre-commit install | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files |