From 87593a2e37d0174ceb5403635d0736c737bc4ebe Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 18:24:52 -0700 Subject: [PATCH] refactor: improve formatting of lint commands in platform info --- aider/coders/base_coder.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 09dd987f1..abb768525 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -885,8 +885,13 @@ class Coder: platform_text += "- The user is operating inside a git repository\n" if self.lint_cmds: - platform_text += f"- Lint commands: {self.lint_cmds}\n" - + platform_text += "- Lint commands:\n" + for lang, cmd in self.lint_cmds.items(): + if lang is None: + platform_text += f" - Default: {cmd}\n" + else: + platform_text += f" - {lang}: {cmd}\n" + if self.test_cmd: platform_text += f"- Test command: {self.test_cmd}\n"