diff --git a/docs/conf.py b/docs/conf.py index be65feb..7899a99 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Sphinx configuration.""" + project = "AI Ghostfunctions" author = "Brian M. Ritz" copyright = "2023, Brian M. Ritz" diff --git a/src/ai_ghostfunctions/ghostfunctions.py b/src/ai_ghostfunctions/ghostfunctions.py index af213bf..9e5834f 100644 --- a/src/ai_ghostfunctions/ghostfunctions.py +++ b/src/ai_ghostfunctions/ghostfunctions.py @@ -1,4 +1,5 @@ """The AICallable class.""" + import ast import inspect import os @@ -34,7 +35,7 @@ def _make_chatgpt_message_from_function( f""" # The return type annotation for the function {f.__name__} is {get_type_hints(f)['return']} # The docstring for the function {f.__name__} is the following: -""" +""" # noqa: E231 ) + "\n".join([f"# {line}" for line in f.__doc__.split("\n")]) + f""" diff --git a/src/ai_ghostfunctions/keywords.py b/src/ai_ghostfunctions/keywords.py index 4cf9cde..df996d1 100644 --- a/src/ai_ghostfunctions/keywords.py +++ b/src/ai_ghostfunctions/keywords.py @@ -1,4 +1,5 @@ """Keywords for ai-ghostfunctions.""" + from typing import get_args from .types import CompletionType