Skip to content

Commit e3baae1

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent 0eb0713 commit e3baae1

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

airbyte_cdk/destinations/destination.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def parse_args(args: List[str]) -> argparse.Namespace:
3434
"""
3535

3636
parent_parser = argparse.ArgumentParser(add_help=False)
37-
parent_parser.add_argument("--debug", action="store_true", help="enables detailed debug logs related to the sync")
37+
parent_parser.add_argument(
38+
"--debug", action="store_true", help="enables detailed debug logs related to the sync"
39+
)
3840
main_parser = argparse.ArgumentParser()
3941
subparsers = main_parser.add_subparsers(title="commands", dest="command")
4042

@@ -54,7 +56,9 @@ def parse_args(args: List[str]) -> argparse.Namespace:
5456

5557
# discover
5658
discover_parser = subparsers.add_parser(
57-
"discover", help="discover the objects available in the destination", parents=[parent_parser]
59+
"discover",
60+
help="discover the objects available in the destination",
61+
parents=[parent_parser],
5862
)
5963
required_discover_parser = discover_parser.add_argument_group("required named arguments")
6064
required_discover_parser.add_argument(

airbyte_cdk/sources/declarative/schema/dynamic_schema_loader.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class AdditionalPropertyFieldsInferrer(ABC):
136136
}
137137
```
138138
"""
139+
139140
@abstractmethod
140141
def infer(self, property_definition: MutableMapping[str, Any]) -> MutableMapping[str, Any]:
141142
"""
@@ -182,7 +183,11 @@ def get_json_schema(self) -> Mapping[str, Any]:
182183
self.schema_type_identifier.type_pointer,
183184
)
184185

185-
value.update(self.additional_property_fields_inferrer.infer(property_definition) if self.additional_property_fields_inferrer else {})
186+
value.update(
187+
self.additional_property_fields_inferrer.infer(property_definition)
188+
if self.additional_property_fields_inferrer
189+
else {}
190+
)
186191
properties[key] = value
187192

188193
transformed_properties = self._transform(properties)

airbyte_cdk/test/catalog_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def with_sync_mode(self, sync_mode: SyncMode) -> "ConfiguredAirbyteStreamBuilder
3434
self._stream["sync_mode"] = sync_mode.name
3535
return self
3636

37-
def with_destination_sync_mode(self, sync_mode: DestinationSyncMode) -> "ConfiguredAirbyteStreamBuilder":
37+
def with_destination_sync_mode(
38+
self, sync_mode: DestinationSyncMode
39+
) -> "ConfiguredAirbyteStreamBuilder":
3840
self._stream["destination_sync_mode"] = sync_mode.name
3941
return self
4042

unit_tests/test/mock_http/test_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ def test_given_any_matcher_for_both_when_matches_then_return_true(self):
158158
assert actual_request.matches(request_to_match)
159159

160160
def test_given_on_match_is_mapping_but_not_input_when_matches_then_return_false(self):
161-
request_to_match = HttpRequest("mock://test.com/path", body={"first_field": "another value"})
161+
request_to_match = HttpRequest(
162+
"mock://test.com/path", body={"first_field": "another value"}
163+
)
162164
actual_request = HttpRequest("mock://test.com/path", body="another_request_body")
163165
assert not actual_request.matches(request_to_match)

0 commit comments

Comments
 (0)