Skip to content

Commit 1719426

Browse files
committed
Run Pyright, MyPy and Ruff in CI
1 parent fac63fb commit 1719426

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,14 @@ jobs:
3838
- name: Run tests
3939
run: uv run pytest -v -rs test/
4040

41+
- name: Type check (mypy)
42+
run: uv run mypy .
43+
44+
- name: Type check (pyright)
45+
run: uv run pyright
46+
47+
- name: Lint (ruff)
48+
run: uv run ruff check
49+
4150
- name: Build docs
4251
run: uv run sphinx-build -b html rst doc/html

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dev = [
3636
"pyright>=1.1.407",
3737
"pytest >= 3.4.0",
3838
"pytest-trio",
39+
"ruff>=0.14.10",
3940
"sphinx",
4041
"twine",
4142
"types-setuptools>=80.9.0.20251223",

uv.lock

Lines changed: 28 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)