From 78af36ffda07fdc49464e7db580b108483d80be7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 18 May 2023 18:17:02 -0700 Subject: [PATCH] cleanup --- aider/commands.py | 8 ++++---- bar.txt | 0 foo.txt | 0 tests/test_commands.py | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 bar.txt delete mode 100644 foo.txt diff --git a/aider/commands.py b/aider/commands.py index d00483797..304310420 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -156,18 +156,18 @@ class Commands: def cmd_add(self, args): "Add matching files to the chat session" - from aider.dump import dump - added_fnames = [] files = self.coder.get_all_relative_files() for word in args.split(): matched_files = [file for file in files if word in file] - dump(word, matched_files) if not matched_files: if self.coder.repo is not None: create_file = Confirm.ask( - f"No files matched '{word}'. Do you want to create the file and add it to git?", + ( + f"No files matched '{word}'. Do you want to create the file and add it" + " to git?" + ), ) else: create_file = Confirm.ask( diff --git a/bar.txt b/bar.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/foo.txt b/foo.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/test_commands.py b/tests/test_commands.py index bdb5fe0bf..2c5378cbb 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -10,6 +10,8 @@ from aider.coder import Coder class TestCommands(unittest.TestCase): def test_cmd_add(self): with tempfile.TemporaryDirectory() as tmpdir: + os.chdir(tmpdir) + io = IO(pretty=False, yes=True) coder = Coder( main_model="gpt-3.5-turbo",