Skip to content

Commit d2bb776

Browse files
fix: apply ruff formatting to unstructured_parser.py
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent 7ba8538 commit d2bb776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/file_based/file_types/unstructured_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ def _get_filetype(self, file: IOBase, remote_file: RemoteFile) -> Optional[FileT
436436
file_content = file.read()
437437
file.seek(0)
438438
if file_content and isinstance(file_content, bytes):
439-
content_str = file_content.decode('utf-8', errors='ignore')
440-
if content_str.lstrip().startswith('#'):
439+
content_str = file_content.decode("utf-8", errors="ignore")
440+
if content_str.lstrip().startswith("#"):
441441
type_based_on_content = FileType.MD
442442
elif remote_file.mime_type == "text/markdown":
443443
type_based_on_content = FileType.MD

0 commit comments

Comments
 (0)