@@ -24,7 +24,7 @@ classifiers = [
2424]
2525
2626[project .optional-dependencies ]
27- dev = [" pre-commit" , " setuptools-scm" , " pyright " , " vulture" ]
27+ dev = [" pre-commit" , " setuptools-scm" , " ty " , " vulture" ]
2828test = [
2929 " pytest" ,
3030 " pytest-cov" ,
@@ -141,36 +141,27 @@ filterwarnings = [
141141relative_files = true
142142omit = [" */__pycache__/*" ]
143143
144- [tool .pyright ]
145- pythonVersion = " 3.13"
146- venvPath = " ."
147- venv = " .venv"
148- # include = ["your_package_name"]
149- exclude = [" tests" , " build" , " .venv" , " _notebooks" , " **/__pycache__" ]
150-
151- # Type checking mode - "off", "basic", "standard", or "strict"
152- typeCheckingMode = " standard"
153-
154- # Disabled for pandas-stubs type inference issues (DataFrame/Series/ndarray ambiguity)
155- reportMissingTypeStubs = false
156- reportUnknownMemberType = false
157- reportUnknownArgumentType = false
158- reportUnknownVariableType = false
159- reportUnknownParameterType = false
160- reportAttributeAccessIssue = false # ndarray missing .iloc, .dt, .str, .groupby
161- reportArgumentType = false # DataFrame vs Series parameter mismatches
162- reportReturnType = false # DataFrame vs Series return mismatches
163- reportCallIssue = false # No overloads for rename, concat, sort_values
164- reportAssignmentType = false # DataFrame vs Series assignment mismatches
144+ [tool .ty .environment ]
145+ python-version = " 3.13"
165146
166- # High-value type safety checks (kept enabled)
167- reportMissingImports = true
168- reportGeneralTypeIssues = true
169- reportPossiblyUnboundVariable = true
170- reportIncompatibleMethodOverride = true
171- reportOptionalMemberAccess = true
172- reportOptionalCall = true
173- reportUnhashable = true
147+ [tool .ty .src ]
148+ # include = ["your_package_name"]
149+ exclude = [
150+ " tests/**" ,
151+ " build/**" ,
152+ " .venv/**" ,
153+ " .github/**" ,
154+ " .vscode/**" ,
155+ " **/__pycache__" ,
156+ ]
174157
175- # Disabled because .configure() class factory pattern requires subclasses to narrow types
176- reportIncompatibleVariableOverride = false
158+ [tool .ty .rules ]
159+ invalid-argument-type = " warn"
160+ invalid-return-type = " warn"
161+ invalid-key = " warn"
162+ invalid-assignment = " warn"
163+ invalid-method-override = " warn"
164+ unresolved-attribute = " warn"
165+ possibly-missing-attribute = " warn"
166+ no-matching-overload = " ignore"
167+ unused-ignore-comment = " ignore"
0 commit comments