新增Ruff Lint工作流

This commit is contained in:
HibiKier 2025-01-17 10:39:46 +08:00 committed by BalconyJH
parent 5c1c3c6de3
commit dddba36647
No known key found for this signature in database
GPG Key ID: FF602923BD2A1FAF

31
.github/workflows/ruff.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Ruff Lint
on:
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 Format
uses: astral-sh/ruff-action@v3
- name: Run Ruff Check
run: ruff check
- name: Run Ruff Format
run: ruff format