mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
formatting
This commit is contained in:
@@ -68,7 +68,10 @@ class Developer(BaseAgent):
|
||||
n_tasks = 1
|
||||
log.debug(f"Breaking down the task review feedback {task_review_feedback}")
|
||||
await self.send_message("Breaking down the task review feedback...")
|
||||
elif self.current_state.current_iteration["status"] in (IterationStatus.AWAITING_BUG_FIX, IterationStatus.AWAITING_LOGGING):
|
||||
elif self.current_state.current_iteration["status"] in (
|
||||
IterationStatus.AWAITING_BUG_FIX,
|
||||
IterationStatus.AWAITING_LOGGING,
|
||||
):
|
||||
iteration = self.current_state.current_iteration
|
||||
current_task["task_review_feedback"] = None
|
||||
|
||||
@@ -125,7 +128,9 @@ class Developer(BaseAgent):
|
||||
self.set_next_steps(response, source)
|
||||
|
||||
if iteration:
|
||||
if "status" not in iteration or (iteration["status"] in (IterationStatus.AWAITING_USER_TEST, IterationStatus.AWAITING_BUG_REPRODUCTION)):
|
||||
if "status" not in iteration or (
|
||||
iteration["status"] in (IterationStatus.AWAITING_USER_TEST, IterationStatus.AWAITING_BUG_REPRODUCTION)
|
||||
):
|
||||
# This is just a support for old iterations that don't have status
|
||||
self.next_state.complete_iteration()
|
||||
self.next_state.action = f"Troubleshooting #{len(self.current_state.iterations)}"
|
||||
@@ -246,9 +251,14 @@ class Developer(BaseAgent):
|
||||
}
|
||||
for step in response.steps
|
||||
]
|
||||
if (len(self.next_state.unfinished_steps) > 0 and
|
||||
source != "review" and (self.next_state.current_iteration is None or
|
||||
self.next_state.current_iteration["status"] != IterationStatus.AWAITING_LOGGING)):
|
||||
if (
|
||||
len(self.next_state.unfinished_steps) > 0
|
||||
and source != "review"
|
||||
and (
|
||||
self.next_state.current_iteration is None
|
||||
or self.next_state.current_iteration["status"] != IterationStatus.AWAITING_LOGGING
|
||||
)
|
||||
):
|
||||
self.next_state.steps += [
|
||||
# TODO: add refactor step here once we have the refactor agent
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user