Compare commits

...

2 Commits

Author SHA1 Message Date
ffd5fbb662 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 22s
2025-04-13 23:28:37 +02:00
976eec1a2e Fixed bug 2025-04-13 23:28:26 +02:00
3 changed files with 11 additions and 7 deletions

View File

@ -131,10 +131,12 @@ For code tasks:
# MODEL = 'ollama/gemma3:27b' # MODEL = 'ollama/gemma3:27b'
MODEL = 'ollama_chat/gemma3:27b' MODEL = 'ollama_chat/gemma3:27b'
def create_aider_command(issue: str) -> list[str]: def create_aider_command(issue: str) -> list[str]:
return [ return [
'aider', 'aider',
'--model', MODEL , '--model',
MODEL,
'--chat-language', '--chat-language',
'english', 'english',
'--test-cmd', '--test-cmd',
@ -243,7 +245,6 @@ def solve_issue_in_repository(
branch_name, branch_name,
issue_number, issue_number,
issue_title, issue_title,
issue_description,
args.base_branch, args.base_branch,
) )

View File

@ -74,5 +74,6 @@ def main():
logger.info('Sleeping for %d seconds...', args.interval) logger.info('Sleeping for %d seconds...', args.interval)
time.sleep(args.interval) time.sleep(args.interval)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -1,6 +1,6 @@
import logging import logging
from collections.abc import Iterator
from typing import Iterator
import requests import requests
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -108,7 +108,9 @@ class GiteaClient:
] ]
return issues return issues
def iter_user_repositories(self, owner: str, only_those_with_issues: bool = False) -> Iterator[str]: def iter_user_repositories(
self, owner: str, only_those_with_issues: bool = False,
) -> Iterator[str]:
""" """
Get a list of repositories for a given user. Get a list of repositories for a given user.