devserver: Fix lint issues.
Fix many (not all) lint issues in this directory.
BUG=None
TEST=run_unittests
Change-Id: Ifc934808c02aef45243e6a6ed099124cca4674d2
Reviewed-on: https://chromium-review.googlesource.com/354735
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Ningning Xia <nxia@chromium.org>
diff --git a/build_artifact.py b/build_artifact.py
index 78f1baa..81c2523 100755
--- a/build_artifact.py
+++ b/build_artifact.py
@@ -20,6 +20,8 @@
import devserver_constants
import log_util
+# We do a number of things with args/kwargs arguments that confuse pylint.
+# pylint: disable=docstring-misnamed-args
_AU_BASE = 'au'
_NTON_DIR_SUFFIX = '_nton'
@@ -519,8 +521,8 @@
Returns:
A data wrapper that describes an artifact's implementation.
-
"""
+ # pylint: disable=super-on-old-class
class NewArtifact(base):
"""A data wrapper that describes an artifact's implementation."""
ARTIFACT_TAG = tag
@@ -544,7 +546,9 @@
def _AddCrOSArtifact(tag, base, name, *fixed_args, **fixed_kwargs):
- """Add a data wrapper that describes a ChromeOS artifact's implementation to
+ """Add a data wrapper for ChromeOS artifacts.
+
+ Add a data wrapper that describes a ChromeOS artifact's implementation to
chromeos_artifact_map.
"""
artifact = _CreateNewArtifact(tag, base, name, *fixed_args, **fixed_kwargs)
@@ -623,7 +627,9 @@
def _AddAndroidArtifact(tag, base, name, *fixed_args, **fixed_kwargs):
- """Add a data wrapper that describes an Android artifact's implementation to
+ """Add a data wrapper for android artifacts.
+
+ Add a data wrapper that describes an Android artifact's implementation to
android_artifact_map.
"""
artifact = _CreateNewArtifact(tag, base, name, *fixed_args, **fixed_kwargs)