diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index 174ebed..47632b1 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -177,7 +177,8 @@ def create_aider_command(issue: str) -> list[str]: '--auto-test', '--no-auto-lint', '--yes', - '--timeout', str(10_000), + '--timeout', + str(10_000), ] if CODE_MODEL in {'ollama/qwen3:32b'}: @@ -636,5 +637,7 @@ def handle_failing_pipelines( check=False, ) run_cmd( - ['git', 'push', 'origin', branch_name], repository_path, check=False, + ['git', 'push', 'origin', branch_name], + repository_path, + check=False, ) diff --git a/setup.py b/setup.py index 330fa53..491f959 100644 --- a/setup.py +++ b/setup.py @@ -84,6 +84,7 @@ The tool uses environment variables for sensitive information: PACKAGE_DESCRIPTION_SHORT = """ A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip() + def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -91,6 +92,7 @@ def parse_version_file(text: str) -> str: raise Exception(msg) return match.group(2) + with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read())