Ruff
This commit is contained in:
parent
3af97ab8f6
commit
78c995c1a7
|
@ -211,7 +211,9 @@ def has_commits_on_branch(cwd: Path, base_branch: str, current_branch: str) -> b
|
|||
return False
|
||||
|
||||
|
||||
def run_cmd(cmd: list[str], cwd: Path | None = None, check=True) -> subprocess.CompletedProcess:
|
||||
def run_cmd(
|
||||
cmd: list[str], cwd: Path | None = None, check=True,
|
||||
) -> subprocess.CompletedProcess:
|
||||
print(cmd)
|
||||
return subprocess.run(cmd, check=check, cwd=cwd)
|
||||
|
||||
|
@ -237,12 +239,16 @@ def solve_issue_in_repository(
|
|||
|
||||
# Run aider
|
||||
try:
|
||||
aider_result = run_cmd(create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname)
|
||||
aider_result = run_cmd(
|
||||
create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname,
|
||||
)
|
||||
if aider_result.returncode != 0:
|
||||
logger.error(f"Aider invocation failed for issue #{issue_number}")
|
||||
logger.error(f'Aider invocation failed for issue #{issue_number}')
|
||||
return False
|
||||
except subprocess.CalledProcessError:
|
||||
logger.exception(f"Aider invocation failed with an exception for issue #{issue_number}")
|
||||
logger.exception(
|
||||
f'Aider invocation failed with an exception for issue #{issue_number}',
|
||||
)
|
||||
return False
|
||||
|
||||
# Auto-fix standard code quality stuff
|
||||
|
|
Loading…
Reference in New Issue
Block a user