mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
✨ 新增Ruff Lint工作流
This commit is contained in:
parent
5c1c3c6de3
commit
dddba36647
31
.github/workflows/ruff.yml
vendored
Normal file
31
.github/workflows/ruff.yml
vendored
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user