From 23581b152144ea7c0106f732ec78cb5e4f2a4837 Mon Sep 17 00:00:00 2001 From: Sivan Grunberg Date: Mon, 1 Apr 2024 13:14:49 +0300 Subject: [PATCH] black formatting --- agit/openai_api.py | 5 ++--- tests/test_main.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/agit/openai_api.py b/agit/openai_api.py index 70b7ca7..d23614f 100644 --- a/agit/openai_api.py +++ b/agit/openai_api.py @@ -69,7 +69,7 @@ async def translate_to_git_command(natural_language, explain, context=None): "role": "system", "content": f"You are an expert git revision control system mentor, you translate natural language to a " f"coherent git command. You will only return commands that are for the git RCS tool and refuse " - f"commands to other software. You will also return a short description of the command to the user. " + f"commands to other software. You will also return a short description of the command to the user. ", }, { "role": "user", @@ -82,8 +82,7 @@ async def translate_to_git_command(natural_language, explain, context=None): f"alwys use it when producing your answers." f"Context: {context_summary}" f"Do not return language markdown such as ```json, but just the actual text of the items inside JSON. Do not" - f"quote the JSON text from the outside using any type quotes as this is redundant." - + f"quote the JSON text from the outside using any type quotes as this is redundant.", }, ] diff --git a/tests/test_main.py b/tests/test_main.py index 7e756c8..e1b64b0 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -40,7 +40,7 @@ def __eq__(self, other): @patch("agit.main.execute_git_command") @patch("agit.main.is_destructive") async def test_main_with_translate_command( - mocked_is_destructive, mocked_execute_git, mocked_translate, mocked_args + mocked_is_destructive, mocked_execute_git, mocked_translate, mocked_args ): # Mocking the return values mocked_execute_git.return_value = config.mocked_exec_output