Skip to content

The agent engineering platform.

chore(text-splitters): enable ruff docstring-code-format (#32854)

Christophe Bornet8b90eae455a6
diff --git a/libs/text-splitters/pyproject.toml b/libs/text-splitters/pyproject.toml
index 35ced364e4..17757ed027 100644
--- a/libs/text-splitters/pyproject.toml
+++ b/libs/text-splitters/pyproject.toml
@@ -66,6 +66,9 @@ ignore_missing_imports = true
[tool.ruff]
target-version = "py39"
+[tool.ruff.format]
+docstring-code-format = true
+
[tool.ruff.lint]
select = [ "ALL",]
ignore = [
diff --git a/libs/text-splitters/tests/unit_tests/conftest.py b/libs/text-splitters/tests/unit_tests/conftest.py
index d56ef0cedf..93192d5f6f 100644
--- a/libs/text-splitters/tests/unit_tests/conftest.py
+++ b/libs/text-splitters/tests/unit_tests/conftest.py
@@ -35,8 +35,7 @@ def pytest_collection_modifyitems(
.. code-block:: python
@pytest.mark.requires("package1", "package2")
- def test_something():
- ...
+ def test_something(): ...
"""
# Mapping from the name of a package to whether it is installed or not.