Skip to content

Commit

Permalink
update formatting from pre-commit formatting tools
Browse files Browse the repository at this point in the history
  • Loading branch information
bmritz committed Feb 14, 2024
1 parent 38732db commit ff7d33d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration."""

project = "AI Ghostfunctions"
author = "Brian M. Ritz"
copyright = "2023, Brian M. Ritz"
Expand Down
3 changes: 2 additions & 1 deletion src/ai_ghostfunctions/ghostfunctions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The AICallable class."""

import ast
import inspect
import os
Expand Down Expand Up @@ -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"""
Expand Down
1 change: 1 addition & 0 deletions src/ai_ghostfunctions/keywords.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Keywords for ai-ghostfunctions."""

from typing import get_args

from .types import CompletionType
Expand Down

0 comments on commit ff7d33d

Please sign in to comment.