Ruff
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s

This commit is contained in:
Jon Michael Aanes 2025-04-13 18:27:10 +02:00
parent eeac3632b1
commit 77739b0004

View File

@ -105,6 +105,7 @@ class GiteaClient:
gitea_url (str): The base URL for the Gitea API endpoints.
session (requests.Session): HTTP session for making API requests.
"""
def __init__(self, gitea_url: str, token: str) -> None:
"""
Initialize a new Gitea API client.
@ -296,7 +297,11 @@ def solve_issue_in_repository(
run_cmd(['git', 'checkout', '-b', branch_name], tmpdirname)
# Run aider
succeeded = run_cmd(create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname, check=False)
succeeded = run_cmd(
create_aider_command(f'# {issue_title}\n{issue_description}'),
tmpdirname,
check=False,
)
if not succeeded:
logger.error('Aider invocation failed for issue #%s', issue_number)
return False