From 5a6e72a64b83c22d6cb63004afa01e7ed8565a6f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 18 May 2024 21:00:45 -0700 Subject: [PATCH] Updated linting functionality to only run linting without committing. --- aider/linter.py | 2 -- aider/main.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/aider/linter.py b/aider/linter.py index af7135652..95f436c4f 100644 --- a/aider/linter.py +++ b/aider/linter.py @@ -20,8 +20,6 @@ class Linter: self.languages = dict( python=self.py_lint, - #python="/Users/gauthier/Projects/aider/tmp.sh", - #python="flake8 --show-source", ) def set_linter(self, lang, cmd): diff --git a/aider/main.py b/aider/main.py index 360749ddd..34aca61ca 100644 --- a/aider/main.py +++ b/aider/main.py @@ -355,7 +355,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F coder.commands.cmd_commit("") return - if args.lint_and_commit: + if args.lint: coder.commands.cmd_lint("") return