@@ -47,7 +47,7 @@ lint = [
47
47
" ruff>=0.9.2" ,
48
48
" sp-repo-review[cli]>=2025.1.22" ,
49
49
]
50
- typecheck = [
50
+ type = [
51
51
{include-group = " extras" },
52
52
{include-group = " ci" },
53
53
{include-group = " codegen" },
@@ -56,10 +56,7 @@ typecheck = [
56
56
]
57
57
dev = [
58
58
{include-group = " lint" },
59
- {include-group = " typecheck" },
60
- " poethepoet>=0.32.1,<1" ,
61
- " pre-commit>=4.1.0" ,
62
- " pre-commit-uv>=4.1.4,<5" ,
59
+ {include-group = " type" },
63
60
]
64
61
65
62
[project .optional-dependencies ]
@@ -113,7 +110,6 @@ ruff = ["_ruff_format", "_ruff_check"]
113
110
check = [" mdformat --check" , " repo-review" , " ruff" ]
114
111
lint = [" check" , " format" ]
115
112
types = " basedpyright codegen scripts"
116
- pre-commit = " pre-commit run --all-files"
117
113
118
114
_test_bpr = " basedpyright tests"
119
115
_test_mypy = """
@@ -159,15 +155,17 @@ args = [
159
155
extend-exclude = [" *.pyi" , " .mypyignore" ]
160
156
161
157
[tool .mypy ]
158
+ files = [" codegen/**/*.py" , " scripts/**/*.py" , " tests/**/*.py" , " scipy-stubs/**/*.pyi" ]
159
+ exclude = [' ^\.git$' , ' ^\.ruff_cache$' ,' ^\.tox$' ]
162
160
python_version = " 3.10"
161
+ plugins = [" numpy.typing.mypy_plugin" ]
163
162
strict = true
164
163
disable_bytearray_promotion = true
165
164
disable_memoryview_promotion = true
166
- warn_unreachable = true
167
- warn_unused_ignores = true
165
+ warn_unreachable = false
166
+ warn_unused_ignores = false
168
167
disallow_any_explicit = false # no other way to type e.g. `float64 <: number[Any]`
169
168
enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
170
- plugins = [" numpy.typing.mypy_plugin" ]
171
169
172
170
[tool .pyright ]
173
171
include = [" scipy-stubs" , " codegen" , " scripts" , " tests" ]
@@ -239,7 +237,7 @@ ignore = [
239
237
240
238
[tool .ruff ]
241
239
src = [" scipy-stubs" , " codegen" , " scripts" ]
242
- exclude = [" .venv" ]
240
+ extend- exclude = [" .venv" , " .git " , " .mypy_cache " , " .tox " ]
243
241
force-exclude = true
244
242
# https://typing.readthedocs.io/en/latest/guides/writing_stubs.html#maximum-line-length
245
243
line-length = 130
0 commit comments