scripts: reformat files tripping docstring-section-indent
This is done with a patch to the "pyformat" tool, which also
improves some handling of long string literals in a way that
is compatible with Black.
BUG=b:233893248
TEST=cros lint + CQ
Change-Id: Iafd4a27f4843927f2881f48002c29401e37a6790
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4564454
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Trent Apted <tapted@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
diff --git a/scripts/cros_sysroot_utils.py b/scripts/cros_sysroot_utils.py
index 9eb589b..effbfcc 100644
--- a/scripts/cros_sysroot_utils.py
+++ b/scripts/cros_sysroot_utils.py
@@ -16,7 +16,7 @@
"""Parse arguments.
Args:
- argv: array of arguments passed to the script.
+ argv: array of arguments passed to the script.
"""
parser = commandline.ArgumentParser(description=__doc__)
parser.set_defaults(out_file=None)
@@ -36,8 +36,10 @@
config.add_argument(
"--out-file",
dest="out_file",
- help="File to write into. If not specified, the "
- "configuration will be printed to stdout.",
+ help=(
+ "File to write into. If not specified, the "
+ "configuration will be printed to stdout."
+ ),
)
config.add_argument("--sysroot", help="Path to the sysroot.", required=True)
config.set_defaults(command="generate-config")
@@ -47,9 +49,11 @@
makeconf.add_argument(
"--out-file",
dest="out_file",
- help="File to write the configuration into. If not "
- "specified, the configuration will be printed to "
- "stdout.",
+ help=(
+ "File to write the configuration into. If not "
+ "specified, the configuration will be printed to "
+ "stdout."
+ ),
)
makeconf.add_argument(
"--accepted-licenses", help="List of accepted licenses."
@@ -61,9 +65,11 @@
binhost.add_argument(
"--out-file",
dest="out_file",
- help="File to write the configuration into. If not "
- "specified, the configuration will be printed to "
- "stdout.",
+ help=(
+ "File to write the configuration into. If not "
+ "specified, the configuration will be printed to "
+ "stdout."
+ ),
)
binhost.add_argument(
"--local-only",