Ruff
This commit is contained in:
parent
eeac3632b1
commit
77739b0004
|
@ -105,6 +105,7 @@ class GiteaClient:
|
||||||
gitea_url (str): The base URL for the Gitea API endpoints.
|
gitea_url (str): The base URL for the Gitea API endpoints.
|
||||||
session (requests.Session): HTTP session for making API requests.
|
session (requests.Session): HTTP session for making API requests.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, gitea_url: str, token: str) -> None:
|
def __init__(self, gitea_url: str, token: str) -> None:
|
||||||
"""
|
"""
|
||||||
Initialize a new Gitea API client.
|
Initialize a new Gitea API client.
|
||||||
|
@ -296,7 +297,11 @@ def solve_issue_in_repository(
|
||||||
run_cmd(['git', 'checkout', '-b', branch_name], tmpdirname)
|
run_cmd(['git', 'checkout', '-b', branch_name], tmpdirname)
|
||||||
|
|
||||||
# Run aider
|
# 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:
|
if not succeeded:
|
||||||
logger.error('Aider invocation failed for issue #%s', issue_number)
|
logger.error('Aider invocation failed for issue #%s', issue_number)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user