Skip to content

Commit 39c351b

Browse files
committed
build: add basedpyright workflow
1 parent 83a033c commit 39c351b

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
workflow_dispatch:
55
pull_request:
66
push:
7+
branches:
8+
- master
79

810
jobs:
911
python-black:

.github/workflows/python.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: python
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
basedpyright:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
19+
- name: Install the project
20+
run: uv sync --all-extras --dev
21+
22+
- name: Run basedpyright
23+
run: uv run basedpyright **/*.py

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Packages
22
/clangd_tidy/_dist_ver.py
33

4+
# uv
5+
uv.lock
6+
47
# Byte-compiled / optimized / DLL files
58
__pycache__/
69
*.py[cod]

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ include = ["clangd_tidy"]
4141
pythonVersion = "3.8"
4242
pythonPlatform = "Linux"
4343
typeCheckingMode = "strict"
44+
45+
[dependency-groups]
46+
dev = [
47+
"basedpyright"
48+
]

0 commit comments

Comments
 (0)