Skip to content

Commit b2b54f7

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent da8e3b2 commit b2b54f7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Diff for: airbyte_cdk/sources/declarative/retrievers/file_uploader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
from pathlib import Path
33
from typing import Optional
44

5+
from airbyte_cdk.models import AirbyteRecordMessageFileReference
56
from airbyte_cdk.sources.declarative.extractors.record_extractor import RecordExtractor
67
from airbyte_cdk.sources.declarative.partition_routers.substream_partition_router import (
78
SafeResponse,
89
)
9-
from airbyte_cdk.models import AirbyteRecordMessageFileReference
1010
from airbyte_cdk.sources.declarative.requesters import Requester
1111
from airbyte_cdk.sources.declarative.types import Record, StreamSlice
1212
from airbyte_cdk.sources.utils.files_directory import get_files_directory

Diff for: airbyte_cdk/sources/utils/record_helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
AirbyteLogMessage,
1010
AirbyteMessage,
1111
AirbyteRecordMessage,
12-
AirbyteTraceMessage,
1312
AirbyteRecordMessageFileReference,
13+
AirbyteTraceMessage,
1414
)
1515
from airbyte_cdk.models import Type as MessageType
1616
from airbyte_cdk.models.file_transfer_record_message import AirbyteFileTransferRecordMessage

Diff for: unit_tests/sources/declarative/file/test_file_stream.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ def read(
5050
_source(catalog, config, state), config, catalog, state, expecting_exception
5151
)
5252

53+
5354
def discover(config_builder: ConfigBuilder, expecting_exception: bool = False) -> EntrypointOutput:
5455
config = config_builder.build()
55-
return entrypoint_discover(_source(CatalogBuilder().build(), config), config, expecting_exception)
56+
return entrypoint_discover(
57+
_source(CatalogBuilder().build(), config), config, expecting_exception
58+
)
5659

5760

5861
class FileStreamTest(TestCase):
@@ -99,5 +102,9 @@ def test_get_article_attachments(self) -> None:
99102
def test_discover_article_attachments(self) -> None:
100103
output = discover(self._config())
101104

102-
article_attachments_stream = next(filter(lambda stream: stream.name == "article_attachments", output.catalog.catalog.streams))
105+
article_attachments_stream = next(
106+
filter(
107+
lambda stream: stream.name == "article_attachments", output.catalog.catalog.streams
108+
)
109+
)
103110
assert article_attachments_stream.is_file_based

0 commit comments

Comments
 (0)