2023-06-24 14:47:35 +08:00
|
|
|
name: Ruff Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2024-01-26 11:12:57 +08:00
|
|
|
- "envs/**"
|
2023-06-24 14:47:35 +08:00
|
|
|
- "nonebot/**"
|
|
|
|
- "packages/**"
|
|
|
|
- "tests/**"
|
2024-01-26 11:12:57 +08:00
|
|
|
- ".github/actions/setup-python/**"
|
|
|
|
- ".github/workflows/ruff.yml"
|
|
|
|
- "pyproject.toml"
|
|
|
|
- "poetry.lock"
|
2023-06-24 14:47:35 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ruff:
|
|
|
|
name: Ruff Lint
|
|
|
|
runs-on: ubuntu-latest
|
2024-01-26 11:12:57 +08:00
|
|
|
concurrency:
|
|
|
|
group: pyright-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-06-24 14:47:35 +08:00
|
|
|
steps:
|
2023-09-05 12:00:44 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-24 14:47:35 +08:00
|
|
|
|
|
|
|
- name: Run Ruff Lint
|
|
|
|
uses: chartboost/ruff-action@v1
|