Ruff
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 23s

This commit is contained in:
Jon Michael Aanes 2025-04-13 18:31:52 +02:00
parent 5fdf9cf002
commit c1786856c4
3 changed files with 2 additions and 22 deletions

View File

@ -18,14 +18,12 @@ from pathlib import Path
import requests import requests
from . import secrets from . import secrets
from ._version import __version__ # noqa: F401
from .seen_issues_db import SeenIssuesDB from .seen_issues_db import SeenIssuesDB
from ._version import __version__ # noqa: F401
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def generate_branch_name(issue_number: str, issue_title: str) -> str: def generate_branch_name(issue_number: str, issue_title: str) -> str:
""" """
Create a branch name by sanitizing the issue title. Create a branch name by sanitizing the issue title.

View File

@ -6,16 +6,9 @@ It assumes that the default branch (default "main") exists and that you have a v
import argparse import argparse
import logging import logging
import re
import subprocess
import sys
import tempfile
import time import time
from pathlib import Path
import requests from . import handle_issues, secrets
from . import secrets, handle_issues
from .gitea_client import GiteaClient from .gitea_client import GiteaClient
from .seen_issues_db import SeenIssuesDB from .seen_issues_db import SeenIssuesDB

View File

@ -1,12 +1,4 @@
import argparse
import logging import logging
import re
import subprocess
import sys
import tempfile
import time
from pathlib import Path
import requests import requests
@ -114,6 +106,3 @@ class GiteaClient:
if any(label.get('name') == 'aider' for label in issue.get('labels', [])) if any(label.get('name') == 'aider' for label in issue.get('labels', []))
] ]
return issues return issues