Skip to content

Commit f247e26

Browse files
committed
source-microsoft-sharepoint: fix ruff format
1 parent 5527b6e commit f247e26

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

airbyte-integrations/connectors/source-microsoft-sharepoint/source_microsoft_sharepoint/stream_reader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,9 @@ def file_size(self, file: MicrosoftSharePointRemoteFile) -> int:
451451
except Exception as e:
452452
raise ErrorFetchingMetadata(f"An error occurred while retrieving file size: {str(e)}")
453453

454-
def upload(self, file: MicrosoftSharePointRemoteFile, local_directory: str, logger: logging.Logger) -> Tuple[FileRecordData, AirbyteRecordMessageFileReference]:
454+
def upload(
455+
self, file: MicrosoftSharePointRemoteFile, local_directory: str, logger: logging.Logger
456+
) -> Tuple[FileRecordData, AirbyteRecordMessageFileReference]:
455457
"""
456458
Downloads a file from Microsoft SharePoint to a specified local directory.
457459

airbyte-integrations/connectors/source-microsoft-sharepoint/unit_tests/test_stream_reader.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ def test_open_file(mock_smart_open, file_extension, expected_compression):
229229
(
230230
"https://my_favorite_sharepoint.sharepoint.com/sites/NOT_DEFAULT_SITE/Shared%20Documents/some/path/to/file",
231231
"txt",
232-
{"bytes": ANY, "source_file_relative_path": "some/path/to/file.txt", "staging_file_url": f"{TEST_LOCAL_DIRECTORY}/some/path/to/file.txt"},
232+
{
233+
"bytes": ANY,
234+
"source_file_relative_path": "some/path/to/file.txt",
235+
"staging_file_url": f"{TEST_LOCAL_DIRECTORY}/some/path/to/file.txt",
236+
},
233237
),
234238
],
235239
)

0 commit comments

Comments
 (0)