From ff7d33df53933fa68ca09e336d578f0fa37a84a5 Mon Sep 17 00:00:00 2001 From: Brian Ritz Date: Wed, 14 Feb 2024 10:31:29 -0500 Subject: [PATCH] update formatting from pre-commit formatting tools --- docs/conf.py | 1 + src/ai_ghostfunctions/ghostfunctions.py | 3 ++- src/ai_ghostfunctions/keywords.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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