@@ -95,21 +95,19 @@ dev = [
95
95
96
96
97
97
[tool .hatch .build ]
98
- packages = [" src/_numtype" , " src/numtype" , " src/numpy-stubs" ]
99
-
100
- [tool .hatch .build .targets .sdist ]
101
- exclude = [
102
- " /.github" ,
103
- " /.vscode" ,
104
- " /dist" ,
105
- " /doc" ,
106
- " /test" ,
107
- " /tool" ,
108
- " .mypyignore" ,
109
- " .mypyignore-todo" ,
110
- " CONTRIBUTING.md" ,
111
- " uv.lock" ,
112
- ]
98
+ exclude = [
99
+ " **/@test" ,
100
+ " **/*.yml" ,
101
+ " **/.*" ,
102
+ " /docs" ,
103
+ " /tool" ,
104
+ " CONTRIBUTING.md" ,
105
+ " uv.lock" ,
106
+ ]
107
+ skip-excluded-dirs = true
108
+
109
+ [tool .hatch .build .targets .wheel ]
110
+ packages = [" src/_numtype" , " src/numtype" , " src/numpy-stubs" ]
113
111
114
112
115
113
[tool .mypy ]
@@ -137,11 +135,9 @@ disable_memoryview_promotion = true
137
135
138
136
139
137
[tool .pyright ]
140
- include = [" src" , " test " , " tool" ]
138
+ include = [" src" , " tool" ]
141
139
ignore = [" .venv" ]
142
140
stubPath = " src"
143
- venvPath = " ."
144
- venv = " .venv"
145
141
pythonPlatform = " All"
146
142
typeCheckingMode = " strict"
147
143
@@ -152,7 +148,7 @@ enableReachabilityAnalysis = false
152
148
reportCallInDefaultInitializer = true
153
149
reportImportCycles = true
154
150
reportImplicitOverride = true
155
- reportInvalidStubStatement = false # see execution environments
151
+ reportInvalidStubStatement = false # required for type-testing
156
152
reportMissingSuperCall = false
157
153
reportPrivateUsage = false
158
154
reportPropertyTypeMismatch = false
@@ -162,7 +158,7 @@ reportUninitializedInstanceVariable = true
162
158
reportUnnecessaryTypeIgnoreComment = true
163
159
reportUnusedExpression = false
164
160
reportUnusedParameter = false
165
- reportUnusedVariable = false
161
+ reportUnusedVariable = true
166
162
# basedpyright only
167
163
failOnWarnings = true
168
164
reportIgnoreCommentWithoutRule = true
@@ -174,30 +170,8 @@ reportPrivateLocalImportUsage = true
174
170
reportUnannotatedClassAttribute = false
175
171
strictGenericNarrowing = true
176
172
177
- [[executionEnvironments ]]
178
- root = " src"
179
- reportInvalidStubStatement = true
180
- reportUnusedCallResult = true
181
- reportUnusedVariable = true
182
-
183
- [[executionEnvironments ]]
184
- root = " test"
185
- reportAny = true
186
- reportPrivateUsage = true
187
- reportUnreachable = true
188
- # basedpyright only
189
- reportExplicitAny = true
190
- reportUnsafeMultipleInheritance = true
191
-
192
- [[executionEnvironments ]]
193
- root = " tool"
194
- reportImplicitOverride = true
195
- reportInvalidStubStatement = true
196
- reportUnusedCallResult = true
197
-
198
-
199
173
[tool .ruff ]
200
- src = [" src" , " test " , " tool" ]
174
+ src = [" src" , " tool" ]
201
175
extend-exclude = [" .git" , " .mypy_cache" , " .tox" , " .venv" ]
202
176
force-exclude = true
203
177
# https://typing.python.org/en/latest/guides/writing_stubs.html#maximum-line-length
0 commit comments