Skip to content

Commit 7866052

Browse files
committed
✅: basedpyright
Signed-off-by: nstarman <[email protected]>
1 parent da26175 commit 7866052

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ jobs:
134134
uv run --no-sync --active \
135135
pyright ${{ steps.collect-files.outputs.files }}
136136
137-
# TODO: (based)pyright
137+
- name: basedpyright
138+
run: |
139+
uv sync --no-editable --group=basedpyright
140+
uv pip install numpy==${{ matrix.numpy-version }}
141+
uv run --no-sync --active \
142+
basedpyright ${{ steps.collect-files.outputs.files }}
138143
139144
# TODO: integration tests for array-api-strict
140145
# TODO: integration tests for 3rd party libs such as cupy, pytorch, tensorflow, dask, etc.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ test_numpy = [
6565
pyright = [
6666
"pyright>=1.1.403",
6767
]
68+
basedpyright = [
69+
"basedpyright>=1.31.3",
70+
]
6871

6972
[tool.hatch]
7073
version.source = "vcs"
@@ -92,6 +95,9 @@ local_partial_types = true
9295
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
9396
warn_unreachable = true
9497

98+
[tool.pyright]
99+
typeCheckingMode = "strict"
100+
95101
[tool.pytest.ini_options]
96102
addopts = [
97103
"--showlocals",

uv.lock

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)