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:
150
150
types : [pyi]
151
151
args : [scripts/run_stubtest.py]
152
152
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]
153
161
- id : inconsistent-namespace-usage
154
162
name : ' Check for inconsistent use of pandas namespace'
155
163
entry : python scripts/check_for_inconsistent_pandas_namespace.py
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ dependencies:
77
77
# code checks
78
78
- flake8=7.1.0 # run in subprocess over docstring examples
79
79
- mypy=1.13.0 # pre-commit uses locally installed mypy
80
+ - ty=0.0.1a14 # pre-commit uses locally installed ty
80
81
- tokenize-rt # scripts/check_for_inconsistent_pandas_namespace.py
81
82
- pre-commit>=4.2.0
82
83
Original file line number Diff line number Diff line change @@ -663,6 +663,30 @@ module = [
663
663
]
664
664
ignore_errors = true
665
665
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
+
666
690
# To be kept consistent with "Import Formatting" section in contributing.rst
667
691
[tool .isort ]
668
692
known_pre_libs = " pandas._config"
You can’t perform that action at this time.
0 commit comments