Ruff after aider
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 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-21 16:10:29 +02:00
parent 7b500c3f2e
commit a4f7caf125
2 changed files with 5 additions and 4 deletions

View File

@ -78,10 +78,9 @@ import sys
import tempfile import tempfile
from pathlib import Path from pathlib import Path
from .seen_issues_db import SeenIssuesDB
from . import secrets from . import secrets
from ._version import __version__ # noqa: F401 from ._version import __version__ # noqa: F401
from .seen_issues_db import SeenIssuesDB
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -169,11 +169,13 @@ class GiteaClient:
response.raise_for_status() response.raise_for_status()
return response.json() return response.json()
def get_pull_request_comments(self, owner: str, repo: str, pr_number: str) -> list[dict]: def get_pull_request_comments(
self, owner: str, repo: str, pr_number: str,
) -> list[dict]:
""" """
Fetch comments for a pull request. Fetch comments for a pull request.
""" """
url = f"{self.gitea_url}/repos/{owner}/{repo}/pulls/{pr_number}/comments" url = f'{self.gitea_url}/repos/{owner}/{repo}/pulls/{pr_number}/comments'
response = self.session.get(url) response = self.session.get(url)
response.raise_for_status() response.raise_for_status()
return response.json() return response.json()