Skip to content

Commit

Permalink
Merge pull request #311 from neutrinoceros/typ/pyright
Browse files Browse the repository at this point in the history
TYP: also typecheck against pyright
  • Loading branch information
neutrinoceros authored Jan 9, 2025
2 parents fbe1799 + fcf49e1 commit 5579fe3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Typecheck
- run: uv sync --frozen --group typecheck
- name: Typecheck (mypy)
run: |
uv run --frozen --no-editable --group typecheck mypy src/gpgi
uv run mypy src
- name: Typecheck (pyright)
run: |
uv run pyright src
future:
name: py${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ concurrency = [
]
typecheck = [
"mypy>=1.13.0",
"pyright>=1.1.391",
]

[tool.setuptools]
Expand Down
28 changes: 27 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5579fe3

Please sign in to comment.