Skip to content

Commit

Permalink
Apply black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman authored and github-actions[bot] committed Jan 16, 2024
1 parent e0a3c92 commit 3bba35b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions post/clang_tidy_review/clang_tidy_review/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,14 @@ def create_review(
if files == []:
with message_group("No files to check!"):
with open(REVIEW_FILE, "w") as review_file:
json.dump({"body": "clang-tidy found no files to check", "event": "COMMENT", "comments": []}, review_file)
json.dump(
{
"body": "clang-tidy found no files to check",
"event": "COMMENT",
"comments": [],
},
review_file,
)
return None

print(f"Checking these files: {files}", flush=True)
Expand All @@ -775,7 +782,14 @@ def create_review(
if line_ranges == "[]":
with message_group("No lines added in this PR!"):
with open(REVIEW_FILE, "w") as review_file:
json.dump({"body": "clang-tidy found no lines added", "event": "COMMENT", "comments": []}, review_file)
json.dump(
{
"body": "clang-tidy found no lines added",
"event": "COMMENT",
"comments": [],
},
review_file,
)
return None

print(f"Line filter for clang-tidy:\n{line_ranges}\n")
Expand Down

0 comments on commit 3bba35b

Please sign in to comment.