fix: replace subprocess.run with run_cmd for ruff check to fix test failure
This commit is contained in:
parent
79b75dc165
commit
4e536e5859
|
@ -381,14 +381,7 @@ def solve_issue_in_repository(
|
|||
return IssueResolution(False)
|
||||
|
||||
# Code quality pass: ensure ruff passes
|
||||
result = subprocess.run(
|
||||
['bash', '-c', 'ruff check .'],
|
||||
check=False,
|
||||
cwd=tmpdirname,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
if not run_cmd(['bash', '-c', 'ruff check .'], tmpdirname, check=False):
|
||||
logger.info('Code quality issues detected, invoking aider to fix lint...')
|
||||
run_cmd(create_aider_command(issue_content), tmpdirname, check=False)
|
||||
run_cmd(['bash', '-c', RUFF_FORMAT_AND_AUTO_FIX], tmpdirname, check=False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user