11[project ]
22name = " infrahub-sdk"
3- version = " 1.4.1 "
3+ version = " 1.5.0 "
44requires-python = " >=3.9"
55
66[tool .poetry ]
77name = " infrahub-sdk"
8- version = " 1.4.1 "
8+ version = " 1.5.0 "
99description = " Python Client to interact with Infrahub"
1010authors = [
" OpsMill <[email protected] >" ]
1111readme = " README.md"
@@ -164,33 +164,19 @@ disallow_untyped_defs = true
164164
165165[[tool .mypy .overrides ]]
166166module = " infrahub_sdk.ctl.check"
167- disable_error_code = [
168- " call-overload"
169- ]
167+ disable_error_code = [" call-overload" ]
170168
171169[[tool .mypy .overrides ]]
172170module = " infrahub_sdk.ctl.generator"
173- disable_error_code = [
174- " attr-defined" ,
175- ]
171+ disable_error_code = [" attr-defined" ]
176172
177173[[tool .mypy .overrides ]]
178174module = " infrahub_sdk.ctl.schema"
179- disable_error_code = [
180- " arg-type" ,
181- " attr-defined" ,
182- " misc" ,
183- " union-attr" ,
184- ]
175+ disable_error_code = [" arg-type" , " attr-defined" , " misc" , " union-attr" ]
185176
186177[[tool .mypy .overrides ]]
187178module = " infrahub_sdk.utils"
188- disable_error_code = [
189- " arg-type" ,
190- " attr-defined" ,
191- " return-value" ,
192- " union-attr" ,
193- ]
179+ disable_error_code = [" arg-type" , " attr-defined" , " return-value" , " union-attr" ]
194180
195181[tool .ruff ]
196182line-length = 120
@@ -215,31 +201,31 @@ task-tags = ["FIXME", "TODO", "XXX"]
215201select = [" ALL" ]
216202
217203ignore = [
218- " D" , # pydocstyle
219- " DOC" , # pydoclint
220- " CPY" , # flake8-copyright
221- " T201" , # use of `print`
222- " ISC" , # flake8-implicit-str-concat
223- " COM812" , # missing-trailing-comma
204+ " D" , # pydocstyle
205+ " DOC" , # pydoclint
206+ " CPY" , # flake8-copyright
207+ " T201" , # use of `print`
208+ " ISC" , # flake8-implicit-str-concat
209+ " COM812" , # missing-trailing-comma
224210
225211 # #################################################################################################
226212 # Rules below needs to be Investigated #
227213 # #################################################################################################
228- " PT" , # flake8-pytest-style
229- " PGH" , # pygrep-hooks
230- " ERA" , # eradicate commented-out code
231- " SLF001" , # flake8-self
232- " EM" , # flake8-errmsg
233- " TRY" , # tryceratops
234- " TD" , # flake8-todos
235- " FIX" , # flake8-fixme
236- " TID" , # flake8-tidy-imports
237- " FBT" , # flake8-boolean-trap
238- " G" , # flake8-logging-format
239- " FLY" , # flynt
240- " RSE" , # flake8-raise
241- " BLE" , # flake8-blind-except (BLE)
242- " A" , # flake8-builtins
214+ " PT" , # flake8-pytest-style
215+ " PGH" , # pygrep-hooks
216+ " ERA" , # eradicate commented-out code
217+ " SLF001" , # flake8-self
218+ " EM" , # flake8-errmsg
219+ " TRY" , # tryceratops
220+ " TD" , # flake8-todos
221+ " FIX" , # flake8-fixme
222+ " TID" , # flake8-tidy-imports
223+ " FBT" , # flake8-boolean-trap
224+ " G" , # flake8-logging-format
225+ " FLY" , # flynt
226+ " RSE" , # flake8-raise
227+ " BLE" , # flake8-blind-except (BLE)
228+ " A" , # flake8-builtins
243229
244230 # #################################################################################################
245231 # The ignored rules below should be removed once the code has been updated, they are included #
@@ -313,21 +299,21 @@ max-complexity = 17
313299 # #################################################################################################
314300 # Review and change the below later #
315301 # #################################################################################################
316- " ANN201" , # ANN201 Missing return type annotation for public function
317- " ANN202" , # Missing return type annotation for private function
318- " ANN204" , # Missing return type annotation for special method
319- " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed
302+ " ANN201" , # ANN201 Missing return type annotation for public function
303+ " ANN202" , # Missing return type annotation for private function
304+ " ANN204" , # Missing return type annotation for special method
305+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed
320306]
321307
322308"infrahub_sdk/client.py" = [
323309 # #################################################################################################
324310 # Review and change the below later #
325311 # #################################################################################################
326- " PLR0904" , # Too many public methods
312+ " PLR0904" , # Too many public methods
327313]
328314
329315"infrahub_sdk/pytest_plugin/models.py" = [
330- " S105" , # 'PASS' is not a password but a state
316+ " S105" , # 'PASS' is not a password but a state
331317]
332318
333319
@@ -342,10 +328,10 @@ max-complexity = 17
342328 # #################################################################################################
343329 # Review and change the below later #
344330 # #################################################################################################
345- " ANN001" , # Missing type annotation for function argument
346- " ANN201" , # ANN201 Missing return type annotation for public function
347- " ANN202" , # Missing return type annotation for private function
348- " ANN204" , # Missing return type annotation for special method
331+ " ANN001" , # Missing type annotation for function argument
332+ " ANN201" , # ANN201 Missing return type annotation for public function
333+ " ANN202" , # Missing return type annotation for private function
334+ " ANN204" , # Missing return type annotation for special method
349335]
350336
351337"tests/unit/sdk/test_client.py" = [
0 commit comments