Skip to content

Commit 2d62940

Browse files
authored
Merge pull request #121 from opsmill/pog-split-ignored-errors
Rework ignore rules for mypy
2 parents 413994d + 5c7dea6 commit 2d62940

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

pyproject.toml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,34 @@ disallow_untyped_defs = true
153153

154154
[[tool.mypy.overrides]]
155155
module = "infrahub_sdk.ctl.check"
156-
ignore_errors = true
156+
disable_error_code = [
157+
"call-overload"
158+
]
157159

158160
[[tool.mypy.overrides]]
159161
module = "infrahub_sdk.ctl.generator"
160-
ignore_errors = true
162+
disable_error_code = [
163+
"attr-defined",
164+
"no-untyped-def",
165+
]
161166

162167
[[tool.mypy.overrides]]
163168
module = "infrahub_sdk.ctl.schema"
164-
ignore_errors = true
169+
disable_error_code = [
170+
"arg-type",
171+
"attr-defined",
172+
"misc",
173+
"union-attr",
174+
]
165175

166176
[[tool.mypy.overrides]]
167177
module = "infrahub_sdk.utils"
168-
ignore_errors = true
178+
disable_error_code = [
179+
"arg-type",
180+
"attr-defined",
181+
"return-value",
182+
"union-attr",
183+
]
169184

170185
[tool.ruff]
171186
line-length = 120

0 commit comments

Comments
 (0)