mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: Format code using linter
This commit is contained in:
parent
884ee535af
commit
78a4ed69d8
1 changed files with 6 additions and 3 deletions
|
@ -538,7 +538,10 @@ class RepoMap:
|
||||||
if key in self.tree_cache:
|
if key in self.tree_cache:
|
||||||
return self.tree_cache[key]
|
return self.tree_cache[key]
|
||||||
|
|
||||||
if rel_fname not in self.tree_context_cache or self.tree_context_cache[rel_fname]['mtime'] != mtime:
|
if (
|
||||||
|
rel_fname not in self.tree_context_cache
|
||||||
|
or self.tree_context_cache[rel_fname]["mtime"] != mtime
|
||||||
|
):
|
||||||
code = self.io.read_text(abs_fname) or ""
|
code = self.io.read_text(abs_fname) or ""
|
||||||
if not code.endswith("\n"):
|
if not code.endswith("\n"):
|
||||||
code += "\n"
|
code += "\n"
|
||||||
|
@ -556,9 +559,9 @@ class RepoMap:
|
||||||
# header_max=30,
|
# header_max=30,
|
||||||
show_top_of_file_parent_scope=False,
|
show_top_of_file_parent_scope=False,
|
||||||
)
|
)
|
||||||
self.tree_context_cache[rel_fname] = {'context': context, 'mtime': mtime}
|
self.tree_context_cache[rel_fname] = {"context": context, "mtime": mtime}
|
||||||
|
|
||||||
context = self.tree_context_cache[rel_fname]['context']
|
context = self.tree_context_cache[rel_fname]["context"]
|
||||||
context.lines_of_interest = set()
|
context.lines_of_interest = set()
|
||||||
context.add_lines_of_interest(lois)
|
context.add_lines_of_interest(lois)
|
||||||
context.add_context()
|
context.add_context()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue