👷 add lint ci

This commit is contained in:
StarHeartHunt 2025-02-16 10:09:24 +08:00
parent bb9ae962e6
commit 8ba2bb511c
3 changed files with 77 additions and 0 deletions

31
.github/workflows/pyright.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Pyright Lint
on:
push:
branches:
- main
pull_request:
paths:
- "nonebot_plugin_llmchat/**"
- ".github/workflows/pyright.yml"
- "pyproject.toml"
- "poetry.lock"
jobs:
pyright:
name: Pyright Lint
runs-on: ubuntu-latest
concurrency:
group: lint-${{ github.ref }}-${{ matrix.env }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Python environment
uses: ./.github/actions/setup-python
- name: Run Pyright
uses: jakebailey/pyright-action@v2
with:
pylance-version: latest-release