Reformat comments after switch to black
Change-Id: Ic361798160bb1d50e3d79404b8cc54515b9071ed
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/19160
Reviewed-by: Oliver Newman <olivernewman@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/recipe_modules/roll_util/api.py b/recipe_modules/roll_util/api.py
index 4baea61..32d24d7 100644
--- a/recipe_modules/roll_util/api.py
+++ b/recipe_modules/roll_util/api.py
@@ -175,7 +175,7 @@
def check_roll_direction(
self, git_dir, old, new, name='check roll direction'
):
- """Return if old is an ancestor of new (i.e., the roll moves forward)."""
+ """Return if old is an ancestor of new (i.e., a "forward" roll)."""
if old == new:
with self.m.step.nest(name) as pres:
pres.step_summary_text = 'up-to-date'
@@ -204,7 +204,10 @@
'than {new}'
)
if old_revision == new_revision:
- fmt = 'not updating from {old} to {new} because they are identical'
+ fmt = (
+ 'not updating from {old} to {new} because they are '
+ 'identical'
+ )
pres.step_summary_text = fmt.format(
old=old_revision[0:7], new=new_revision[0:7]
)