From 3f71159ecf02cd111295fba01e88b14c59eef53c Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 13 Apr 2025 17:13:51 +0200 Subject: [PATCH] Run within bash --- aider_gitea/__main__.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/aider_gitea/__main__.py b/aider_gitea/__main__.py index 130ba94..23e66e3 100644 --- a/aider_gitea/__main__.py +++ b/aider_gitea/__main__.py @@ -30,8 +30,23 @@ def generate_branch_name(issue_number: str, issue_title: str) -> str: logger = logging.getLogger(__name__) -AIDER_TEST="virtualenv venv; source venv/bin/activate; pip install -e .; pytest test" -AIDER_LINT="ruff format; ruff check --fix --ignore RUF022 --ignore PGH004; ruff format; ruff check --ignore RUF022 --ignore PGH004;" +def bash_cmd(*commands: str) -> str: + return "bash -c \""+';'.join(cmd)+"\"" + +AIDER_TEST=bash_cmd( + "virtualenv venv", + "source venv/bin/activate", + "pip install -e .", + "pytest test", +) + +AIDER_LINT=bash_cmd( + "ruff format", + "ruff check --fix --ignore RUF022 --ignore PGH004", + "ruff format", + "ruff check --ignore RUF022 --ignore PGH004", +) + MODEL = 'o3-mini'