From 61165164d8014c76eadefdab81aa281225564be4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 20 May 2024 12:38:41 -0700 Subject: [PATCH] Run flake8 --isolated --- aider/io.py | 4 +--- aider/linter.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aider/io.py b/aider/io.py index 92462f1dd..d826d0977 100644 --- a/aider/io.py +++ b/aider/io.py @@ -300,9 +300,7 @@ class InputOutput: res = prompt(question + " ", default=default) hist = f"{question.strip()} {res.strip()}" - self.append_chat_history(hist, linebreak=True, blockquote=True) - if self.yes in (True, False): - self.tool_output(hist) + self.tool_output(hist) if not res or not res.strip(): return diff --git a/aider/linter.py b/aider/linter.py index f2afe2d05..57d225fcf 100644 --- a/aider/linter.py +++ b/aider/linter.py @@ -98,7 +98,7 @@ class Linter: compile_res = lint_python_compile(fname, code) fatal = "E9,F821,F823,F831,F406,F407,F701,F702,F704,F706" - flake8 = f"flake8 --select={fatal} --show-source" + flake8 = f"flake8 --select={fatal} --show-source --isolated" try: flake_res = self.run_cmd(flake8, rel_fname, code)