mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
refactor: PEP8
This commit is contained in:
parent
ec5b8ccfe1
commit
db34c6f458
1 changed files with 5 additions and 6 deletions
|
|
@ -332,12 +332,11 @@ class Engineer(Role):
|
|||
async def _new_code_actions(self):
|
||||
bug_fix = await self._is_fixbug()
|
||||
# Prepare file repos
|
||||
changed_src_files = (
|
||||
{self.context.kwargs.src_filename: ChangeType.UNTRACTED}
|
||||
if self.context.kwargs.src_filename
|
||||
else self.project_repo.srcs.changed_files
|
||||
)
|
||||
changed_src_files = self.project_repo.srcs.all_files if bug_fix else changed_src_files
|
||||
changed_src_files = self.project_repo.srcs.changed_files
|
||||
if self.context.kwargs.src_filename:
|
||||
changed_src_files = {self.context.kwargs.src_filename: ChangeType.UNTRACTED}
|
||||
if bug_fix:
|
||||
changed_src_files = self.project_repo.srcs.all_files
|
||||
changed_task_files = self.project_repo.docs.task.changed_files
|
||||
changed_files = Documents()
|
||||
# Recode caused by upstream changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue