Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.4.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.4.2) - 2025-01-09

### Added

- Adds `infrahubctl info` command to display information of the connectivity status of the SDK. ([#109](https://github.com/opsmill/infrahub-sdk-python/issues/109))
- 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))
- Add the ability to batch API queries for `all` and `filter` functions. ([#159](https://github.com/opsmill/infrahub-sdk-python/issues/159))
- `client.all` and `client.filters` now support `order` parameter allowing to disable order of retrieve nodes in order to enhance performances

## [1.4.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.3.0) - 2025-01-05

### Fixed
Expand Down
1 change: 0 additions & 1 deletion changelog/+nodes-order.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/109.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/158.added.me

This file was deleted.

1 change: 0 additions & 1 deletion changelog/159.added.md

This file was deleted.

88 changes: 37 additions & 51 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "infrahub-sdk"
version = "1.4.1"
version = "1.4.2"
requires-python = ">=3.9"

[tool.poetry]
name = "infrahub-sdk"
version = "1.4.1"
version = "1.4.2"
description = "Python Client to interact with Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down Expand Up @@ -164,33 +164,19 @@ disallow_untyped_defs = true

[[tool.mypy.overrides]]
module = "infrahub_sdk.ctl.check"
disable_error_code = [
"call-overload"
]
disable_error_code = ["call-overload"]

[[tool.mypy.overrides]]
module = "infrahub_sdk.ctl.generator"
disable_error_code = [
"attr-defined",
]
disable_error_code = ["attr-defined"]

[[tool.mypy.overrides]]
module = "infrahub_sdk.ctl.schema"
disable_error_code = [
"arg-type",
"attr-defined",
"misc",
"union-attr",
]
disable_error_code = ["arg-type", "attr-defined", "misc", "union-attr"]

[[tool.mypy.overrides]]
module = "infrahub_sdk.utils"
disable_error_code = [
"arg-type",
"attr-defined",
"return-value",
"union-attr",
]
disable_error_code = ["arg-type", "attr-defined", "return-value", "union-attr"]

[tool.ruff]
line-length = 120
Expand All @@ -215,31 +201,31 @@ task-tags = ["FIXME", "TODO", "XXX"]
select = ["ALL"]

ignore = [
"D", # pydocstyle
"DOC", # pydoclint
"CPY", # flake8-copyright
"T201", # use of `print`
"ISC", # flake8-implicit-str-concat
"COM812", # missing-trailing-comma
"D", # pydocstyle
"DOC", # pydoclint
"CPY", # flake8-copyright
"T201", # use of `print`
"ISC", # flake8-implicit-str-concat
"COM812", # missing-trailing-comma

##################################################################################################
# Rules below needs to be Investigated #
##################################################################################################
"PT", # flake8-pytest-style
"PGH", # pygrep-hooks
"ERA", # eradicate commented-out code
"SLF001", # flake8-self
"EM", # flake8-errmsg
"TRY", # tryceratops
"TD", # flake8-todos
"FIX", # flake8-fixme
"TID", # flake8-tidy-imports
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"FLY", # flynt
"RSE", # flake8-raise
"BLE", # flake8-blind-except (BLE)
"A", # flake8-builtins
"PT", # flake8-pytest-style
"PGH", # pygrep-hooks
"ERA", # eradicate commented-out code
"SLF001", # flake8-self
"EM", # flake8-errmsg
"TRY", # tryceratops
"TD", # flake8-todos
"FIX", # flake8-fixme
"TID", # flake8-tidy-imports
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"FLY", # flynt
"RSE", # flake8-raise
"BLE", # flake8-blind-except (BLE)
"A", # flake8-builtins

##################################################################################################
# The ignored rules below should be removed once the code has been updated, they are included #
Expand Down Expand Up @@ -313,21 +299,21 @@ max-complexity = 17
##################################################################################################
# Review and change the below later #
##################################################################################################
"ANN201", # ANN201 Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"ANN204", # Missing return type annotation for special method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ANN201", # ANN201 Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"ANN204", # Missing return type annotation for special method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
]

"infrahub_sdk/client.py" = [
##################################################################################################
# Review and change the below later #
##################################################################################################
"PLR0904", # Too many public methods
"PLR0904", # Too many public methods
]

"infrahub_sdk/pytest_plugin/models.py" = [
"S105", # 'PASS' is not a password but a state
"S105", # 'PASS' is not a password but a state
]


Expand All @@ -342,10 +328,10 @@ max-complexity = 17
##################################################################################################
# Review and change the below later #
##################################################################################################
"ANN001", # Missing type annotation for function argument
"ANN201", # ANN201 Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"ANN204", # Missing return type annotation for special method
"ANN001", # Missing type annotation for function argument
"ANN201", # ANN201 Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"ANN204", # Missing return type annotation for special method
]

"tests/unit/sdk/test_client.py" = [
Expand Down
Loading