Skip to content

Commit ad010c1

Browse files
build(pyproject): migrate from pyright to mypy
1 parent 8e6be73 commit ad010c1

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ uv run ruff format
113113
Run type checking:
114114

115115
```sh
116-
uv run pyright
116+
uv run mypy .
117117
```
118118

119119
## Build

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ repos:
2222
args: [--fix]
2323
- id: ruff-format
2424

25-
- repo: https://github.com/RobertCraigie/pyright-python
26-
rev: v1.1.408
25+
- repo: https://github.com/pre-commit/mirrors-mypy
26+
rev: v1.19.1
2727
hooks:
28-
- id: pyright
29-
entry: bash -c 'uv run pyright'
28+
- id: mypy

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ docs = [
2222
lint = [
2323
"mypy==1.19.1",
2424
"pre-commit==4.5.1",
25-
"pyright==1.1.408",
2625
"ruff==0.15.2",
2726
]
2827
test = [
@@ -75,8 +74,3 @@ fail_under = 100
7574

7675
[tool.coverage.html]
7776
show_contexts = true
78-
79-
[tool.pyright]
80-
include = ["src", "tests"]
81-
strict = ["src/**"]
82-
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)