File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,14 @@ repos:
150150 types : [pyi]
151151 args : [scripts/run_stubtest.py]
152152 stages : [manual]
153+ - id : ty
154+ # note: assumes python env is setup and activated
155+ name : ty
156+ entry : ty check
157+ language : system
158+ pass_filenames : false
159+ types : [python]
160+ stages : [manual]
153161 - id : inconsistent-namespace-usage
154162 name : ' Check for inconsistent use of pandas namespace'
155163 entry : python scripts/check_for_inconsistent_pandas_namespace.py
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ dependencies:
7777 # code checks
7878 - flake8=7.1.0 # run in subprocess over docstring examples
7979 - mypy=1.13.0 # pre-commit uses locally installed mypy
80+ - ty=0.0.1a14 # pre-commit uses locally installed ty
8081 - tokenize-rt # scripts/check_for_inconsistent_pandas_namespace.py
8182 - pre-commit>=4.2.0
8283
Original file line number Diff line number Diff line change @@ -663,6 +663,30 @@ module = [
663663]
664664ignore_errors = true
665665
666+ [tool .ty .src ]
667+ include = [" pandas" ]
668+
669+ # ## TODO: Enable gradually
670+ [tool .ty .rules ]
671+ unresolved-attribute = " ignore"
672+ invalid-return-type = " ignore"
673+ unsupported-operator = " ignore"
674+ invalid-assignment = " ignore"
675+ invalid-argument-type = " ignore"
676+ unresolved-import = " ignore"
677+ no-matching-overload = " ignore"
678+ possibly-unbound-attribute = " ignore"
679+ call-non-callable = " ignore"
680+ missing-argument = " ignore"
681+ non-subscriptable = " ignore"
682+ unknown-argument = " ignore"
683+ not-iterable = " ignore"
684+ unresolved-reference = " ignore"
685+ invalid-context-manager = " ignore"
686+ too-many-positional-arguments = " ignore"
687+ invalid-type-form = " ignore"
688+ parameter-already-assigned = " ignore"
689+
666690# To be kept consistent with "Import Formatting" section in contributing.rst
667691[tool .isort ]
668692known_pre_libs = " pandas._config"
You can’t perform that action at this time.
0 commit comments