@@ -82,6 +82,7 @@ lint = [
8282 " mypy==1.11.2" ,
8383 " ruff==0.14.5" ,
8484 " astroid>=3.1,<4.0" ,
85+ " ty==0.0.4" ,
8586]
8687types = [
8788 " types-ujson" ,
@@ -116,6 +117,68 @@ filterwarnings = [
116117]
117118addopts = " -vs --cov-report term-missing --cov-report xml --dist loadscope"
118119
120+ [tool .ty ]
121+
122+ [tool .ty .environment ]
123+ python-version = " 3.10"
124+
125+ [[tool .ty .overrides ]]
126+ include = [" infrahub_sdk/**" ]
127+
128+ [tool .ty .overrides .rules ]
129+ # #################################################################################################
130+ # The ignored rules below should be removed once the code has been updated, they are included #
131+ # like this so that we can reactivate them one by one. #
132+ # #################################################################################################
133+ division-by-zero = " ignore"
134+ invalid-argument-type = " ignore"
135+ invalid-assignment = " ignore"
136+ invalid-await = " ignore"
137+ invalid-return-type = " ignore"
138+ invalid-type-form = " ignore"
139+ missing-argument = " ignore"
140+ no-matching-overload = " ignore"
141+ possibly-unresolved-reference = " ignore"
142+ redundant-cast = " ignore"
143+ too-many-positional-arguments = " ignore"
144+ type-assertion-failure = " ignore"
145+ unknown-argument = " ignore"
146+ unresolved-attribute = " ignore"
147+ unresolved-import = " ignore"
148+ unsupported-operator = " ignore"
149+
150+
151+ [[tool .ty .overrides ]]
152+ include = [" tests/**" ]
153+
154+ [tool .ty .overrides .rules ]
155+ # #################################################################################################
156+ # The ignored rules below should be removed once the code has been updated, they are included #
157+ # like this so that we can reactivate them one by one. #
158+ # #################################################################################################
159+ invalid-argument-type = " ignore"
160+ invalid-assignment = " ignore"
161+ invalid-method-override = " ignore"
162+ invalid-return-type = " ignore"
163+ no-matching-overload = " ignore"
164+ non-subscriptable = " ignore"
165+ not-iterable = " ignore"
166+ possibly-missing-attribute = " ignore"
167+ unresolved-attribute = " ignore"
168+ unresolved-import = " ignore"
169+
170+
171+ [[tool .ty .overrides ]]
172+ include = [" docs/**" ]
173+
174+ [tool .ty .overrides .rules ]
175+ # #################################################################################################
176+ # The ignored rules below should be removed once the code has been updated, they are included #
177+ # like this so that we can reactivate them one by one. #
178+ # #################################################################################################
179+ invalid-assignment = " ignore"
180+
181+
119182[tool .mypy ]
120183pretty = true
121184ignore_missing_imports = true
0 commit comments