A programming framework for agentic AI
Format docstrings with ruff (#43)
Jack Gerrits805707c89aa4
diff --git a/pyproject.toml b/pyproject.tomlindex 765a7af1f..693431d50 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -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"]diff --git a/src/agnext/agent_components/function_utils.py b/src/agnext/agent_components/function_utils.pyindex e76e2355e..230b6f679 100644--- a/src/agnext/agent_components/function_utils.py+++ b/src/agnext/agent_components/function_utils.py@@ -244,6 +244,7 @@ def get_function_schema(f: Callable[..., Any], *, name: Optional[str] = None, dedef 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',