Skip to content

Commit df64a46

Browse files
authored
setup pyright (#375)
1 parent ccd5ad6 commit df64a46

File tree

7 files changed

+25
-5
lines changed

7 files changed

+25
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: astral-sh/setup-uv@v5
2929
with:
3030
# Install a specific version of uv.
31-
version: "0.5.1"
31+
version: "0.6.14"
3232
enable-cache: true
3333
cache-dependency-glob: "uv.lock"
3434
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/devdoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: astral-sh/setup-uv@v5
2121
with:
2222
# Install a specific version of uv.
23-
version: "0.5.1"
23+
version: "0.6.14"
2424
enable-cache: true
2525
cache-dependency-glob: "uv.lock"
2626
- name: Install Documentation dependencies

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: astral-sh/setup-uv@v5
2121
with:
2222
# Install a specific version of uv.
23-
version: "0.5.1"
23+
version: "0.6.14"
2424
enable-cache: true
2525
cache-dependency-glob: "uv.lock"
2626
- name: Install Documentation dependencies

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,20 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: psf/black@stable
22+
pyright:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
with:
29+
# Install a specific version of uv.
30+
version: "0.6.14"
31+
enable-cache: true
32+
cache-dependency-glob: "uv.lock"
33+
- name: Install the project
34+
run: uv sync --all-extras --dev
35+
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
36+
- uses: jakebailey/pyright-action@v2
37+
with:
38+
pylance-version: latest-release

.github/workflows/pub_doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: astral-sh/setup-uv@v5
2121
with:
2222
# Install a specific version of uv.
23-
version: "0.5.1"
23+
version: "0.6.14"
2424
enable-cache: true
2525
cache-dependency-glob: "uv.lock"
2626
- name: Install Documentation dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: astral-sh/setup-uv@v5
1414
with:
1515
# Install a specific version of uv.
16-
version: "0.5.5"
16+
version: "0.6.14"
1717
- name: Install the project
1818
run: uv sync --all-extras --dev
1919
- name: Build distribution 📦

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ exclude = [
5959
[tool.ruff.lint]
6060
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
6161

62+
[tool.pyright]
63+
include = ["src"]
64+
6265
[tool.coverage.run]
6366
include = ["src/kirin/*"]
6467

0 commit comments

Comments
 (0)