Skip to content

Feature/pyright check #1

Feature/pyright check

Feature/pyright check #1

Workflow file for this run

name: Ruff Lint
on:
workflow_call: # 允许此工作流作为可重用工作流被调用
push:
branches:
- "*"
pull_request:
paths:
- "zhenxun/**"
- "tests/**"
- ".github/workflows/ruff.yml"
- "pyproject.toml"
- "poetry.lock"
jobs:
ruff:
name: Ruff Lint
runs-on: ubuntu-latest
concurrency:
group: ruff-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ruff
uses: astral-sh/ruff-action@v3
- name: Run Ruff Check
run: ruff check
- name: Run Ruff Format
run: ruff format