Run black
No changes to expectation files.
Change-Id: I9cc837c5a367e742f1fac09a099b060103665d91
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/192232
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/recipe_modules/util/api.py b/recipe_modules/util/api.py
index 4a1f569..3cfa418 100644
--- a/recipe_modules/util/api.py
+++ b/recipe_modules/util/api.py
@@ -48,13 +48,17 @@
query_params=['ALL_COMMITS', 'ALL_REVISIONS', 'ALL_FILES'],
test_data=self.m.json.test_api.output(
{
- 'owner': {'email': 'coder@example.com',},
+ 'owner': {
+ 'email': 'coder@example.com',
+ },
'current_revision': 'a' * 40,
'revisions': {
'a'
* 40: {
'files': [],
- 'commit': {'message': '',},
+ 'commit': {
+ 'message': '',
+ },
'description': 'description',
}
},
@@ -63,9 +67,9 @@
),
).json.output
- current_revision: str = (
- details['revisions'][details['current_revision']]
- )
+ current_revision: str = details['revisions'][
+ details['current_revision']
+ ]
commit_message: str = current_revision['commit']['message']
comments: list[str] = []
@@ -78,7 +82,9 @@
"list change comments",
change_id,
test_data=self.m.json.test_api.output(
- {'/PATCHSET_LEVEL': [{'message': ''}],}
+ {
+ '/PATCHSET_LEVEL': [{'message': ''}],
+ }
),
).json.output