Skip to content

Commit 4da92dd

Browse files
committed
Use correct pyright python version
1 parent e103ab9 commit 4da92dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
python-version: ["3.10", "3.13"]
2727
env:
2828
UV_PYTHON: ${{ matrix.python-version }}
29+
PYRIGHT_PYTHON: ${{ matrix.python-version }}
2930
steps:
3031
- uses: actions/checkout@v4
3132

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ lint: ## Lint the code
3434
uv run ruff format --check
3535
uv run ruff check
3636

37+
PYRIGHT_PYTHON ?= 3.10
38+
3739
.PHONY: typecheck-pyright
3840
typecheck-pyright:
3941
@# PYRIGHT_PYTHON_IGNORE_WARNINGS avoids the overhead of making a request to github on every invocation
40-
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright
42+
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright --pythonversion $(PYRIGHT_PYTHON)
4143

4244
.PHONY: typecheck-mypy
4345
typecheck-mypy:

0 commit comments

Comments
 (0)