diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5a24ac..eece437 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -75,7 +75,7 @@ repos: - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v3.21.0 + rev: v3.21.1 hooks: - id: pyupgrade args: [--py37-plus, --keep-runtime-typing] @@ -96,7 +96,7 @@ repos: require_serial: true - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.9.0 + rev: 25.11.0 hooks: - id: black diff --git a/horizon_hwm_store/horizon_hwm_store.py b/horizon_hwm_store/horizon_hwm_store.py index 81f66a2..1b67dcf 100644 --- a/horizon_hwm_store/horizon_hwm_store.py +++ b/horizon_hwm_store/horizon_hwm_store.py @@ -231,7 +231,7 @@ def force_create_namespace(self) -> HorizonHWMStore: namespace = self.client.create_namespace(NamespaceCreateRequestV1(name=self.namespace)) self._namespace_id = namespace.id # noqa: WPS601 except EntityAlreadyExistsError: - ... + namespace = self._get_namespace(self.namespace) return self # LoginPassword, RetryConfig and TimeoutConfig can be inherited from Pydantic v2 BaseModel