api: controller: Lint fixes.
Fix line-too-long and docstring-section-indent errors.
BUG=b:233893248
TEST=cros lint
Change-Id: I52ac19eb3a38066d4d09d56d27d61c904269a0e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4190794
Tested-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
Auto-Submit: Alex Klein <saklein@chromium.org>
Reviewed-by: Cindy Lin <xcl@google.com>
diff --git a/api/controller/toolchain.py b/api/controller/toolchain.py
index d5c59b3..a4e9947 100644
--- a/api/controller/toolchain.py
+++ b/api/controller/toolchain.py
@@ -117,9 +117,11 @@
),
}
+# pylint: disable=line-too-long
_TOOLCHAIN_COMMIT_HANDLERS = {
BuilderConfig.Artifacts.VERIFIED_KERNEL_CWP_AFDO_FILE: "VerifiedKernelCwpAfdoFile"
}
+# pylint: enable=line-too-long
# TODO(crbug/1031213): When @faux is expanded to have more than success/failure,
@@ -143,16 +145,18 @@
yet been created.
sysroot_path (str): sysroot path inside the chroot (e.g., /build/atlas).
Will be an empty string if the sysroot has not yet been created.
- build_target_name (str): name of the build target (e.g., atlas). Will be
+ build_target_name (str): name of the build target (e.g., atlas). Will be
an empty string if the sysroot has not yet been created.
- input_artifacts ({(str) name:[str gs_locations]}): locations for possible
- input artifacts. The handler is expected to know which keys it should
- be using, and ignore any keys that it does not understand.
+ input_artifacts ({(str) name:[str gs_locations]}): locations for
+ possible input artifacts. The handler is expected to know which
+ keys it should be using, and ignore any keys that it does not
+ understand.
profile_info ({(str) name: (str) value}) Dictionary containing profile
information.
They locate and modify any ebuilds and/or source required for the artifact
- being created, then return a value from toolchain_util.PrepareForBuildReturn.
+ being created, then return a value from
+ toolchain_util.PrepareForBuildReturn.
This function sets output_proto.build_relevance to the result.
@@ -364,9 +368,9 @@
which = profile_info.WhichOneof("artifact_profile_info")
if which:
value = getattr(profile_info, which)
- # If it is a message, then use the contents of the message. This works as
- # long as simple types do not have a 'DESCRIPTOR' attribute. (And protobuf
- # messages do.)
+ # If it is a message, then use the contents of the message. This works
+ # as long as simple types do not have a 'DESCRIPTOR' attribute. (And
+ # protobuf messages do.)
if getattr(value, "DESCRIPTOR", None):
ret.update({k.name: v for k, v in value.ListFields()})
else: