Skip to content

Commit 5d9d564

Browse files
committed
Type check with pyright as part of test.sh and CI checks
Check that we're clean with pyright in test.sh and run that in CI as well. This should keep us clean for the standard VSCode Python environment.
1 parent 4c3d4b2 commit 5d9d564

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
4848
- name: Check source code
4949
run: |
50-
uv run tools/test.sh --ruff-format --ruff-check
50+
uv run tools/test.sh --ruff-format --ruff-check --pyright

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ flatpak-indexer = "flatpak_indexer.cli:cli"
3939
[dependency-groups]
4040
dev = [
4141
"pre-commit>=2.1.1",
42+
"pyright>=0.0.13.post0",
4243
"ruff",
4344
]
4445

tools/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ run() {
4949
run pytest pytest "${pytest_args[@]}"
5050
run ruff-format ruff format --check flatpak_indexer tests tools
5151
run ruff-check ruff check flatpak_indexer tests tools
52+
run pyright pyright flatpak_indexer tests tools
5253

5354
if [[ "$failed" != "" ]] ; then
5455
if [[ -t 1 ]] ; then

0 commit comments

Comments
 (0)