mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
feat: add special file filtering to RepoMap ranking
This commit is contained in:
parent
20e7e549f5
commit
b228ba3dc5
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,7 @@ from pygments.token import Token
|
|||
from tqdm import tqdm
|
||||
|
||||
from aider.dump import dump
|
||||
from aider.special import filter_important_files
|
||||
from aider.utils import Spinner
|
||||
|
||||
# tree_sitter is throwing a FutureWarning
|
||||
|
@ -501,6 +502,12 @@ class RepoMap:
|
|||
progress=spin.step,
|
||||
)
|
||||
|
||||
other_rel_fnames = sorted(set(self.get_rel_fname(fname) for fname in other_fnames))
|
||||
special_fnames = filter_important_files(other_rel_fnames)
|
||||
special_fnames = [(fn,) for fn in special_fnames]
|
||||
|
||||
ranked_tags = special_fnames + ranked_tags
|
||||
|
||||
spin.step()
|
||||
|
||||
num_tags = len(ranked_tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue