mirror of https://github.com/microsoft/autogen.git
Format docstrings with ruff (#43)
This commit is contained in:
parent
492f8ecae0
commit
805707c89a
|
@ -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"]
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue