From 5959e7990af8979b73e7aecb2606e6f45b0ac29f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 18 May 2024 18:59:37 -0700 Subject: [PATCH] Return the linting results in the Linter class. --- aider/linter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/linter.py b/aider/linter.py index f94d37cc2..7f0d13dac 100644 --- a/aider/linter.py +++ b/aider/linter.py @@ -40,6 +40,7 @@ class Linter: def run_cmd(self, cmd, rel_fname): cmd += " " + rel_fname cmd = cmd.split() + try: subprocess.check_output(cmd, cwd=self.root).decode() return # zero exit status @@ -51,6 +52,8 @@ class Linter: res += "But if the command fixed all the issues itself, don't take further action.\n\n" res += errors + return res + def lint(self, fname): lang = filename_to_lang(fname) if not lang: