mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
noop
This commit is contained in:
parent
1aa9cde119
commit
f70aea7cd1
1 changed files with 23 additions and 2 deletions
|
@ -6,12 +6,12 @@ import tiktoken
|
|||
from collections import defaultdict
|
||||
|
||||
from aider import prompts, utils
|
||||
from aider.dump import dump
|
||||
|
||||
|
||||
# Global cache for tags
|
||||
TAGS_CACHE = {}
|
||||
|
||||
from aider.dump import dump
|
||||
|
||||
|
||||
def to_tree(tags):
|
||||
tags = sorted(tags)
|
||||
|
@ -170,12 +170,32 @@ class RepoMap:
|
|||
return tags
|
||||
|
||||
|
||||
def find_py_files(directory):
|
||||
if not os.path.isdir(directory):
|
||||
return [directory]
|
||||
|
||||
py_files = []
|
||||
for root, dirs, files in os.walk(directory):
|
||||
for file in files:
|
||||
if file.endswith(".py"):
|
||||
py_files.append(os.path.join(root, file))
|
||||
return py_files
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import random
|
||||
import graphviz
|
||||
|
||||
fnames = sys.argv[1:]
|
||||
|
||||
"""
|
||||
fnames = []
|
||||
for dname in sys.argv[1:]:
|
||||
fnames += find_py_files(dname)
|
||||
|
||||
fnames = sorted(fnames)
|
||||
"""
|
||||
|
||||
rm = RepoMap()
|
||||
# res = rm.get_tags_map(fnames)
|
||||
# print(res)
|
||||
|
@ -187,6 +207,7 @@ if __name__ == "__main__":
|
|||
|
||||
show_fnames = set()
|
||||
for fname in fnames:
|
||||
dump(fname)
|
||||
show_fname = os.path.relpath(fname, root)
|
||||
show_fnames.add(show_fname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue