Skip to content

Commit 8b90eae

Browse files
authored
chore(text-splitters): enable ruff docstring-code-format (#32854)
1 parent 05d1477 commit 8b90eae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libs/text-splitters/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ ignore_missing_imports = true
6666
[tool.ruff]
6767
target-version = "py39"
6868

69+
[tool.ruff.format]
70+
docstring-code-format = true
71+
6972
[tool.ruff.lint]
7073
select = [ "ALL",]
7174
ignore = [

libs/text-splitters/tests/unit_tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def pytest_collection_modifyitems(
3535
.. code-block:: python
3636
3737
@pytest.mark.requires("package1", "package2")
38-
def test_something():
39-
...
38+
def test_something(): ...
4039
4140
"""
4241
# Mapping from the name of a package to whether it is installed or not.

0 commit comments

Comments
 (0)