Cleanup: resolve pylint warnings

This commit is contained in:
Campbell Barton
2025-05-23 03:58:31 +00:00
parent 845cec84bf
commit 72f24fcbab
7 changed files with 26 additions and 12 deletions

View File

@@ -27,6 +27,8 @@ import re
import shutil
import sys
from dataclasses import dataclass, field
from gitea_utils import (
gitea_json_activities_get,
gitea_json_pull_request_by_base_and_head_get,
@@ -41,7 +43,6 @@ from typing import (
from collections.abc import (
Iterable,
)
from dataclasses import dataclass, field
# Support piping the output to a file or process.
IS_ATTY = sys.stdout.isatty()
@@ -243,7 +244,10 @@ def report_personal_weekly_get(
# against the default branch of the target repository.
if not is_release_branch and target_repo_json:
pr = gitea_json_pull_request_by_base_and_head_get(
target_repo_fullname, target_repo_json["default_branch"], f"{repo_fullname}:{branch_name}")
target_repo_fullname,
target_repo_json["default_branch"],
f"{repo_fullname}:{branch_name}",
)
branch = target_repo.branches[branch_name]
if pr: