Ruff
This commit is contained in:
parent
32cdcde883
commit
56c70f6322
|
@ -177,7 +177,8 @@ def create_aider_command(issue: str) -> list[str]:
|
||||||
'--auto-test',
|
'--auto-test',
|
||||||
'--no-auto-lint',
|
'--no-auto-lint',
|
||||||
'--yes',
|
'--yes',
|
||||||
'--timeout', str(10_000),
|
'--timeout',
|
||||||
|
str(10_000),
|
||||||
]
|
]
|
||||||
|
|
||||||
if CODE_MODEL in {'ollama/qwen3:32b'}:
|
if CODE_MODEL in {'ollama/qwen3:32b'}:
|
||||||
|
@ -636,5 +637,7 @@ def handle_failing_pipelines(
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
run_cmd(
|
run_cmd(
|
||||||
['git', 'push', 'origin', branch_name], repository_path, check=False,
|
['git', 'push', 'origin', branch_name],
|
||||||
|
repository_path,
|
||||||
|
check=False,
|
||||||
)
|
)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -84,6 +84,7 @@ The tool uses environment variables for sensitive information:
|
||||||
PACKAGE_DESCRIPTION_SHORT = """
|
PACKAGE_DESCRIPTION_SHORT = """
|
||||||
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
|
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
|
||||||
|
|
||||||
|
|
||||||
def parse_version_file(text: str) -> str:
|
def parse_version_file(text: str) -> str:
|
||||||
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||||
if match is None:
|
if match is None:
|
||||||
|
@ -91,6 +92,7 @@ def parse_version_file(text: str) -> str:
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
return match.group(2)
|
return match.group(2)
|
||||||
|
|
||||||
|
|
||||||
with open(PACKAGE_NAME + '/_version.py') as f:
|
with open(PACKAGE_NAME + '/_version.py') as f:
|
||||||
version = parse_version_file(f.read())
|
version = parse_version_file(f.read())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user