Skip to content

Commit 319bf61

Browse files
GitHub Actions: Run basedpyright
- But not from pre-commit
1 parent 8b19a93 commit 319bf61

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/basedpyright.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- develop
9+
- feature-*
10+
11+
jobs:
12+
basedpyright:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
contents: read
17+
packages: write
18+
pull-requests: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
version: 0.8.22
25+
python-version: 3.11
26+
enable-cache: true
27+
cache-suffix: pre-commit
28+
cache-dependency-glob: uv.lock
29+
- name: Restore venv cache
30+
uses: actions/cache@v4
31+
with:
32+
path: |
33+
.venv
34+
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
35+
- name: Synchronize project dependencies
36+
run: uv sync --group dev
37+
- name: Run basedpyright
38+
run: uv run basedpyright

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ jobs:
4141
run: uv sync --group dev
4242
- name: Run pre-commit checks
4343
run: uv run pre-commit run --show-diff-on-failure --all-files
44+
env:
45+
SKIP: basedpyright

0 commit comments

Comments
 (0)