mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 14:36:08 +01:00
Update pre-commit versions and fix black break (#160)
Caught by black stable change, done by `pre-commit autoupdate` `pre-commit autoupdate` also wanted to update pre-commit-hooks, but that gave me some pyenv errors so I'm leaving it alone for now.
This commit is contained in:
@@ -36,7 +36,9 @@ def _parse_args(args=None):
|
||||
"specified title."
|
||||
)
|
||||
parser.add_argument(
|
||||
"title", metavar="TITLE", help="The title of the proposal.",
|
||||
"title",
|
||||
metavar="TITLE",
|
||||
help="The title of the proposal.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--branch",
|
||||
|
||||
@@ -292,8 +292,7 @@ def _parse_args(args=None):
|
||||
|
||||
|
||||
def _query(parsed_args, field_name=None):
|
||||
"""Returns a query for the given field, or all fields if none are specified.
|
||||
"""
|
||||
"""Returns a query for the given field, or all fields if none are specified."""
|
||||
print(".", end="", flush=True)
|
||||
format = {
|
||||
"pr_num": parsed_args.pr_num,
|
||||
|
||||
@@ -191,7 +191,9 @@ class TestPRComments(unittest.TestCase):
|
||||
]
|
||||
for thread in review_threads:
|
||||
pr_comments._accumulate_thread(
|
||||
parsed_args, threads_by_path, thread,
|
||||
parsed_args,
|
||||
threads_by_path,
|
||||
thread,
|
||||
)
|
||||
self.assertEqual(sorted(threads_by_path.keys()), ["foo.md", "other.md"])
|
||||
threads = sorted(threads_by_path["foo.md"])
|
||||
@@ -209,7 +211,8 @@ class TestPRComments(unittest.TestCase):
|
||||
|
||||
@staticmethod
|
||||
def fake_pr_comment_dict(
|
||||
body="comment", created_at="2001-02-03T04:05:06Z",
|
||||
body="comment",
|
||||
created_at="2001-02-03T04:05:06Z",
|
||||
):
|
||||
pr_comment_dict = {
|
||||
"author": {"login": "author"},
|
||||
|
||||
Reference in New Issue
Block a user