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 11, 2024
1 parent e2610c9 commit 406fab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions post/clang_tidy_review/clang_tidy_review/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ def load_and_merge_reviews(review_files: List[pathlib.Path]) -> Optional[PRRevie
class Comment:
def __init__(self, data):
self.data = data

def __hash__(self):
return hash(
(
Expand All @@ -892,6 +893,7 @@ def __hash__(self):
self.data["side"],
)
)

def __eq__(self, other):
return type(other) is Comment and self.data == other.data

Expand Down
5 changes: 4 additions & 1 deletion post/clang_tidy_review/clang_tidy_review/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def main():
parser.add_argument("--repo", help="Repo name in form 'owner/repo'")
parser.add_argument("--pr", help="PR number", type=int)
parser.add_argument(
"--clang_tidy_binary", help="clang-tidy binary", default="clang-tidy-14", type=pathlib.Path
"--clang_tidy_binary",
help="clang-tidy binary",
default="clang-tidy-14",
type=pathlib.Path,
)
parser.add_argument(
"--build_dir", help="Directory with compile_commands.json", default="."
Expand Down

0 comments on commit 406fab7

Please sign in to comment.