From 513a53394040b86609198df048f8e8b7432be8b4 Mon Sep 17 00:00:00 2001 From: Aldo Gonzalez Date: Sun, 5 Jan 2025 19:18:08 -0800 Subject: [PATCH] airbyte-cdk: ruff format --- .../declarative/parsers/model_to_component_factory.py | 7 ++++++- .../declarative/parsers/test_model_to_component_factory.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py index 4d2b4b4b4..2cba8e378 100644 --- a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +++ b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py @@ -1512,7 +1512,12 @@ def create_exponential_backoff_strategy( ) def create_http_requester( - self, model: HttpRequesterModel, config: Config, decoder: Decoder=JsonDecoder(parameters={}), *, name: str + self, + model: HttpRequesterModel, + config: Config, + decoder: Decoder = JsonDecoder(parameters={}), + *, + name: str, ) -> HttpRequester: authenticator = ( self._create_component_from_model( diff --git a/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py b/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py index 6753b3390..fa961b15a 100644 --- a/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py +++ b/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py @@ -2644,14 +2644,14 @@ def test_create_custom_retriever(): "type": "DpathExtractor", "field_path": [], }, - "$parameters": { "name": ""} + "$parameters": {"name": ""}, }, "requester": { "type": "HttpRequester", "name": "list", "url_base": "orange.com", "path": "/v1/api", - "$parameters": {"name": ""} + "$parameters": {"name": ""}, }, }, }