mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
style: Format code to comply with linter rules
This commit is contained in:
parent
00f03d89b9
commit
13f9685f13
1 changed files with 8 additions and 3 deletions
|
@ -1122,12 +1122,17 @@ class Commands:
|
||||||
for root, _, files in os.walk(abs_path):
|
for root, _, files in os.walk(abs_path):
|
||||||
for file in files:
|
for file in files:
|
||||||
file_path = os.path.join(root, file)
|
file_path = os.path.join(root, file)
|
||||||
if file_path not in self.coder.abs_fnames and file_path not in self.coder.abs_read_only_fnames:
|
if (
|
||||||
|
file_path not in self.coder.abs_fnames
|
||||||
|
and file_path not in self.coder.abs_read_only_fnames
|
||||||
|
):
|
||||||
self.coder.abs_read_only_fnames.add(file_path)
|
self.coder.abs_read_only_fnames.add(file_path)
|
||||||
added_files += 1
|
added_files += 1
|
||||||
|
|
||||||
if added_files > 0:
|
if added_files > 0:
|
||||||
self.io.tool_output(f"Added {added_files} files from directory {original_name} to read-only files.")
|
self.io.tool_output(
|
||||||
|
f"Added {added_files} files from directory {original_name} to read-only files."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.io.tool_output(f"No new files added from directory {original_name}.")
|
self.io.tool_output(f"No new files added from directory {original_name}.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue