Skip to content

Commit

Permalink
Manually reformat to make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jun 5, 2024
1 parent 951f96a commit 5b74ce8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def check_review_approvals(pull, condition, missing_approvals_label):
approving_reviewers.add(review.user.login)
if len(approving_reviewers) > condition[1]:
print(
f"PR#{pull} has {len(approving_reviewers)}/{condition[1] + 1} approving reviewers,"
f" removing label '{missing_approvals_label}'"
f"PR#{pull} has {len(approving_reviewers)}/{condition[1] + 1}"
f" approving reviewers, removing label '{missing_approvals_label}'"
)
if missing_approvals_label:
try:
Expand All @@ -197,8 +197,8 @@ def check_review_approvals(pull, condition, missing_approvals_label):

if missing_approvals_label and condition[1] > 0:
print(
f"PR#{pull} has only {len(approving_reviewers)}/{condition[1] + 1} approving reviewers,"
f" setting label '{missing_approvals_label}'"
f"PR#{pull} has only {len(approving_reviewers)}/{condition[1] + 1}"
f" approving reviewers, setting label '{missing_approvals_label}'"
)
pull.add_to_labels(missing_approvals_label)

Expand Down

0 comments on commit 5b74ce8

Please sign in to comment.