Skip to content

Commit 45e9232

Browse files
committed
Upgrade ty and cleanup rules
1 parent fde1504 commit 45e9232

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

pyproject.toml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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
]
8787
types = [
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"
134133
invalid-argument-type = "ignore"
135134
invalid-assignment = "ignore"
136135
invalid-await = "ignore"
137-
invalid-return-type = "ignore"
138136
invalid-type-form = "ignore"
139-
missing-argument = "ignore"
140137
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"
146138
unresolved-attribute = "ignore"
147-
unresolved-import = "ignore"
148139
unsupported-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]]
152149
include = ["tests/**"]
@@ -165,7 +162,6 @@ non-subscriptable = "ignore"
165162
not-iterable = "ignore"
166163
possibly-missing-attribute = "ignore"
167164
unresolved-attribute = "ignore"
168-
unresolved-import = "ignore"
169165

170166

171167
[[tool.ty.overrides]]

uv.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)