mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Run flake8 --isolated
This commit is contained in:
parent
1effd73e80
commit
61165164d8
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue