Update gstorage, create_cuttlefish_action, and others to be pylint compliant.
- auto formatting by yapf with google style
- fix pylint errors
- Add some pylint disable comments to avoid pylint error temporarily
Bug: None
Test: run pylint with the pylintrc which from cl 688459
pylint internal/lib/gstorage_client.py
pylint public/actions/create_cuttlefish_action.py
pylint public/actions/create_cuttlefish_action_test.py
pylint public/config.py
pylint public/config_test.py
pylint public/report.py
pylint public/report_test.py
Change-Id: I45d37359e68c3accae62f46e2a2e38e2a2c0cd28
diff --git a/public/report.py b/public/report.py
index 2048329..2ca11da 100755
--- a/public/report.py
+++ b/public/report.py
@@ -89,8 +89,8 @@
"""
if (candidate not in cls.SEVERITY_ORDER or
reference not in cls.SEVERITY_ORDER):
- raise ValueError("%s or %s is not recognized." %
- (candidate, reference))
+ raise ValueError(
+ "%s or %s is not recognized." % (candidate, reference))
return cls.SEVERITY_ORDER[candidate] > cls.SEVERITY_ORDER[reference]
@@ -154,10 +154,11 @@
report_file: A path to a file where result will be dumped to.
If None, will only output result as logs.
"""
- result = dict(command=self.command,
- status=self.status,
- errors=self.errors,
- data=self.data)
+ result = dict(
+ command=self.command,
+ status=self.status,
+ errors=self.errors,
+ data=self.data)
logger.info("Report: %s", json.dumps(result, indent=2))
if not report_file:
return