style: 使用更多 Ruff 静态检查规则优化代码风格 #183
This file contains 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: Static Check | |
on: | |
push: | |
jobs: | |
static-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install Python | |
run: uv python install 3.12 | |
- name: Install Dependencies | |
run: uv sync --all-extras | |
- name: Lint With Ruff | |
run: uv run ruff check --output-format=github . | |
- name: Type checking with Pyright | |
run: uv run pyright --warnings . |