feat(text-splitters): ruff fixes and rules (#32502)

This commit is contained in:
Mason Daugherty
2025-08-11 13:28:22 -04:00
committed by GitHub
parent 27b6b53f20
commit 457ce9c4b0
12 changed files with 161 additions and 69 deletions

View File

@@ -26,7 +26,7 @@ class MarkdownHeaderTextSplitter:
headers_to_split_on: list[tuple[str, str]],
return_each_line: bool = False, # noqa: FBT001,FBT002
strip_headers: bool = True, # noqa: FBT001,FBT002
):
) -> None:
"""Create a new MarkdownHeaderTextSplitter.
Args:
@@ -281,7 +281,7 @@ class ExperimentalMarkdownSyntaxTextSplitter:
headers_to_split_on: Union[list[tuple[str, str]], None] = None,
return_each_line: bool = False, # noqa: FBT001,FBT002
strip_headers: bool = True, # noqa: FBT001,FBT002
):
) -> None:
"""Initialize the text splitter with header splitting and formatting options.
This constructor sets up the required configuration for splitting text into