Re-enable Aider now that system is usable again

This commit is contained in:
Jon Michael Aanes 2025-04-15 23:25:26 +02:00
parent d03a8aa9df
commit f28df768e7

View File

@ -282,7 +282,7 @@ def run_cmd(cmd: list[str], cwd: Path | None = None, check=True) -> bool:
result = subprocess.run(cmd, check=check, cwd=cwd) result = subprocess.run(cmd, check=check, cwd=cwd)
return result.returncode == 0 return result.returncode == 0
SKIP_AIDER = True SKIP_AIDER = False
def solve_issue_in_repository( def solve_issue_in_repository(
args, args,
@ -293,6 +293,8 @@ def solve_issue_in_repository(
issue_number: str, issue_number: str,
gitea_client=None, gitea_client=None,
) -> bool: ) -> bool:
logger.info("### %s #####", issue_title)
repo_url = f'{args.gitea_url}:{args.owner}/{args.repo}.git'.replace( repo_url = f'{args.gitea_url}:{args.owner}/{args.repo}.git'.replace(
'https://', 'https://',
'git@', 'git@',
@ -349,7 +351,7 @@ def solve_issue_in_repository(
) )
files_changed = result.stdout.strip() files_changed = result.stdout.strip()
if not files_changed: if not files_changed and not SKIP_AIDER:
logger.info( logger.info(
'Aider did not make any changes beyond the initial ruff pass for issue #%s', 'Aider did not make any changes beyond the initial ruff pass for issue #%s',
issue_number, issue_number,