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:
Jon Meow
2020-09-15 09:00:24 -07:00
committed by GitHub
parent b739cf30ae
commit 98ebae62a6
5 changed files with 30 additions and 25 deletions
+3 -1
View File
@@ -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",
+1 -2
View File
@@ -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,
+5 -2
View File
@@ -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"},