api: Fix docstring-section-indent errors
Fix docstring-section-indent errors and resulting line-too-long
errors, but not other existing line-too-long errors.
BUG=b:233893248
TEST=cros lint
Change-Id: I552ce489aaabce6e6600e2518385569ce59b134e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3947314
Reviewed-by: Gilberto Contreras <gcontreras@google.com>
Tested-by: Alex Klein <saklein@chromium.org>
Auto-Submit: Alex Klein <saklein@chromium.org>
Commit-Queue: Gilberto Contreras <gcontreras@google.com>
diff --git a/api/controller/artifacts.py b/api/controller/artifacts.py
index e590efc..c658d16 100644
--- a/api/controller/artifacts.py
+++ b/api/controller/artifacts.py
@@ -63,9 +63,9 @@
stop uploading it via the individual bundler function.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
output_dir = input_proto.result_path.path.path
@@ -153,9 +153,9 @@
individual bundler function.
Args:
- _input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ _input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
# If any artifact_type says "NEEDED", the return is NEEDED.
# Otherwise, if any artifact_type says "UNKNOWN", the return is UNKNOWN.
@@ -170,11 +170,11 @@
TODO(saklein) Expand image_lib.GetLatestImageLink to support this use case.
Args:
- build_root: Path to checkout where build occurs.
- target: Name of the build target.
+ build_root: Path to checkout where build occurs.
+ target: Name of the build target.
Returns:
- Path to the latest directory containing target images or None.
+ Path to the latest directory containing target images or None.
"""
image_dir = os.path.join(build_root, "src/build/images", target, "latest")
if not os.path.exists(image_dir):
@@ -238,9 +238,9 @@
"""Bundle image.zip.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
target = input_proto.build_target.name
output_dir = input_proto.output_dir
@@ -278,9 +278,9 @@
"""Generate minimal update payloads for the build target for testing.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
target = input_proto.build_target.name
output_dir = input_proto.output_dir
@@ -421,9 +421,9 @@
This implements ArtifactsService.FetchMetadata.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ config: The API call config.
"""
chroot = controller_util.ParseChroot(input_proto.chroot)
sysroot = controller_util.ParseSysroot(input_proto.sysroot)
@@ -495,9 +495,9 @@
"""Tar the fingerprint MCU unittest binaries for a build target.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
output_dir = input_proto.output_dir
chroot = controller_util.ParseChroot(input_proto.chroot)
@@ -657,9 +657,9 @@
"""Tar VM disk and memory files.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
chroot = controller_util.ParseChroot(input_proto.chroot)
test_results_dir = input_proto.test_results_dir
@@ -725,9 +725,9 @@
"""Bundle the test image into a tarball suitable for importing into GCE.
Args:
- input_proto: The input proto.
- output_proto: The output proto.
- _config: The API call config.
+ input_proto: The input proto.
+ output_proto: The output proto.
+ _config: The API call config.
"""
target = input_proto.build_target.name
output_dir = input_proto.output_dir