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/image.py b/api/controller/image.py
index 61e8741..c07bd92 100644
--- a/api/controller/image.py
+++ b/api/controller/image.py
@@ -171,14 +171,14 @@
are located within output_artifact.artifact_type.
Args:
- in_proto: Proto request defining reqs.
- chroot: The chroot proto used for these artifacts.
- sysroot_class: The sysroot proto used for these artifacts.
- build_target: The build target used for these artifacts.
- output_dir: The path to write artifacts to.
+ in_proto: Proto request defining reqs.
+ chroot: The chroot proto used for these artifacts.
+ sysroot_class: The sysroot proto used for these artifacts.
+ build_target: The build target used for these artifacts.
+ output_dir: The path to write artifacts to.
Returns:
- A list of dictionary mappings of ArtifactType to list of paths.
+ A list of dictionary mappings of ArtifactType to list of paths.
"""
base_path = chroot.full_path(sysroot_class.path)
board = build_target.name
@@ -244,9 +244,9 @@
"""Build images.
Args:
- input_proto: The input message.
- output_proto: The output message.
- _config: The API call config.
+ input_proto: The input message.
+ output_proto: The output message.
+ _config: The API call config.
"""
board = input_proto.build_target.name
@@ -401,10 +401,10 @@
the requisite image types if they're not explicitly defined.
Args:
- to_build: The image type list.
+ to_build: The image type list.
Returns:
- ImageTypes: The parsed images to build.
+ ImageTypes: The parsed images to build.
"""
image_types = set()
vm_types = set()
@@ -473,9 +473,9 @@
"""Run image tests.
Args:
- input_proto: The input message.
- output_proto: The output message.
- _config: The API call config.
+ input_proto: The input message.
+ output_proto: The output message.
+ _config: The API call config.
"""
image_path = input_proto.image.path
@@ -505,9 +505,9 @@
"""Run image tests.
Args:
- input_proto: The input message.
- output_proto: The output message.
- config: The API call config.
+ input_proto: The input message.
+ output_proto: The output message.
+ config: The API call config.
"""
image_path = input_proto.image.path
board = input_proto.build_target.name
@@ -543,12 +543,12 @@
Wraps chromite/scripts/pushimage.py.
Args:
- input_proto: Input proto.
- _output_proto: Output proto.
- config: The API call config.
+ input_proto: Input proto.
+ _output_proto: Output proto.
+ config: The API call config.
Returns:
- A controller return code (e.g. controller.RETURN_CODE_SUCCESS).
+ A controller return code (e.g. controller.RETURN_CODE_SUCCESS).
"""
sign_types = []
if input_proto.sign_types: