@@ -82,7 +82,7 @@ lint = [
8282 " mypy==1.11.2" ,
8383 " ruff==0.14.5" ,
8484 " astroid>=3.1,<4.0" ,
85- " ty==0.0.4 " ,
85+ " ty==0.0.5 " ,
8686]
8787types = [
8888 " types-ujson" ,
@@ -130,23 +130,20 @@ include = ["infrahub_sdk/**"]
130130# The ignored rules below should be removed once the code has been updated, they are included #
131131# like this so that we can reactivate them one by one. #
132132# #################################################################################################
133- division-by-zero = " ignore"
134133invalid-argument-type = " ignore"
135134invalid-assignment = " ignore"
136135invalid-await = " ignore"
137- invalid-return-type = " ignore"
138136invalid-type-form = " ignore"
139- missing-argument = " ignore"
140137no-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"
146138unresolved-attribute = " ignore"
147- unresolved-import = " ignore"
148139unsupported-operator = " ignore"
149140
141+ [[tool .ty .overrides ]]
142+ include = [" infrahub_sdk/ctl/config.py" ]
143+
144+ [tool .ty .overrides .rules ]
145+ unresolved-import = " ignore" # import tomli as tomllib when running on later versions of Python
146+
150147
151148[[tool .ty .overrides ]]
152149include = [" tests/**" ]
@@ -165,7 +162,6 @@ non-subscriptable = "ignore"
165162not-iterable = " ignore"
166163possibly-missing-attribute = " ignore"
167164unresolved-attribute = " ignore"
168- unresolved-import = " ignore"
169165
170166
171167[[tool .ty .overrides ]]
0 commit comments