Format docstrings with ruff (#43)

This commit is contained in:
Jack Gerrits 2024-06-04 09:36:12 -04:00 committed by GitHub
parent 492f8ecae0
commit 805707c89a
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,9 @@ exclude = ["build", "dist", "my_project/__init__.py", "my_project/main.py"]
target-version = "py310"
include = ["src/**", "examples/**"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "W", "B", "Q", "I", "ASYNC"]
ignore = ["F401", "E501"]

View File

@ -244,6 +244,7 @@ def get_function_schema(f: Callable[..., Any], *, name: Optional[str] = None, de
def f(a: Annotated[str, "Parameter a"], b: int = 2, c: Annotated[float, "Parameter c"] = 0.1) -> None:
pass
get_function_schema(f, description="function f")
# {'type': 'function',