From 266093189df2b796694721db2f8e347d201cfbc6 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 26 Nov 2024 06:26:26 -0800 Subject: [PATCH] style: fix linting issues in get_ident_filename_matches --- aider/coders/base_coder.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 322b4ed23..f08b689d0 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -582,15 +582,11 @@ class Coder: def get_ident_filename_matches(self, idents): all_fnames = defaultdict(set) - existing_basenames = { - Path(fname).name.lower() - for fname in self.get_inchat_relative_files() - + [self.get_rel_fname(f) for f in self.abs_read_only_fnames] - } for fname in self.get_all_relative_files(): base = Path(fname).with_suffix("").name.lower() - # Only skip if we already have a file with this name AND the base name matches the identifier + # Only skip if we already have a file with this name AND + # the base name matches the identifier if len(base) >= 5: all_fnames[base].add(fname)