From 415652d38eb882c5e43521818e3798f04925bdd9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 26 Nov 2024 19:55:07 -0800 Subject: [PATCH] style: reorder subprocess args to keep cwd consistent --- aider/linter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/linter.py b/aider/linter.py index 471914072..529cacb9d 100644 --- a/aider/linter.py +++ b/aider/linter.py @@ -49,11 +49,11 @@ class Linter: try: process = subprocess.Popen( cmd, - cwd=self.root, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding=self.encoding, errors="replace", + cwd=self.root, ) except OSError as err: print(f"Unable to execute lint command: {err}") @@ -152,12 +152,12 @@ class Linter: try: result = subprocess.run( flake8_cmd, - cwd=self.root, capture_output=True, text=True, check=False, encoding=self.encoding, errors="replace", + cwd=self.root, ) errors = result.stdout + result.stderr except Exception as e: