Skip to content

Commit c62efb9

Browse files
authored
Prepare release 1.5.0 (#228)
1 parent 6ec4e25 commit c62efb9

File tree

6 files changed

+46
-55
lines changed

6 files changed

+46
-55
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [1.5.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.5.0) - 2025-01-09
15+
16+
### Added
17+
18+
- Adds `infrahubctl info` command to display information of the connectivity status of the SDK. ([#109](https://github.com/opsmill/infrahub-sdk-python/issues/109))
19+
- Add `count` method to both sync and async clients to retrieve the number of objects of a given kind ([#158](https://github.com/opsmill/infrahub-sdk-python/issues/158))
20+
- Add the ability to batch API queries for `all` and `filter` functions. ([#159](https://github.com/opsmill/infrahub-sdk-python/issues/159))
21+
- `client.all` and `client.filters` now support `order` parameter allowing to disable order of retrieve nodes in order to enhance performances
22+
1423
## [1.4.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.3.0) - 2025-01-05
1524

1625
### Fixed

changelog/+nodes-order.added.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/109.added.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/158.added.me

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/159.added.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 37 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "infrahub-sdk"
3-
version = "1.4.1"
3+
version = "1.5.0"
44
requires-python = ">=3.9"
55

66
[tool.poetry]
77
name = "infrahub-sdk"
8-
version = "1.4.1"
8+
version = "1.5.0"
99
description = "Python Client to interact with Infrahub"
1010
authors = ["OpsMill <[email protected]>"]
1111
readme = "README.md"
@@ -164,33 +164,19 @@ disallow_untyped_defs = true
164164

165165
[[tool.mypy.overrides]]
166166
module = "infrahub_sdk.ctl.check"
167-
disable_error_code = [
168-
"call-overload"
169-
]
167+
disable_error_code = ["call-overload"]
170168

171169
[[tool.mypy.overrides]]
172170
module = "infrahub_sdk.ctl.generator"
173-
disable_error_code = [
174-
"attr-defined",
175-
]
171+
disable_error_code = ["attr-defined"]
176172

177173
[[tool.mypy.overrides]]
178174
module = "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]]
187178
module = "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]
196182
line-length = 120
@@ -215,31 +201,31 @@ task-tags = ["FIXME", "TODO", "XXX"]
215201
select = ["ALL"]
216202

217203
ignore = [
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

Comments
 (0)