Run flake8 --isolated

This commit is contained in:
Paul Gauthier 2024-05-20 12:38:41 -07:00
parent 1effd73e80
commit 61165164d8
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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)