scripts: reformat files tripping docstring-section-indent
This is done with a patch to the "pyformat" tool, which also
improves some handling of long string literals in a way that
is compatible with Black.
BUG=b:233893248
TEST=cros lint + CQ
Change-Id: Iafd4a27f4843927f2881f48002c29401e37a6790
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4564454
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Trent Apted <tapted@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
diff --git a/scripts/sysmon/puppet_metrics.py b/scripts/sysmon/puppet_metrics.py
index 9bb35cc..d2fd322 100644
--- a/scripts/sysmon/puppet_metrics.py
+++ b/scripts/sysmon/puppet_metrics.py
@@ -20,21 +20,26 @@
_config_version_metric = metrics.GaugeMetric(
"puppet/version/config",
- description="The version of the puppet configuration."
- " By default this is the time that the configuration was parsed",
+ description=(
+ "The version of the puppet configuration."
+ " By default this is the time that the configuration was parsed"
+ ),
)
_puppet_version_metric = metrics.StringMetric(
"puppet/version/puppet", description="Version of puppet client installed."
)
_events_metric = metrics.GaugeMetric(
"puppet/events",
- description="Number of changes the puppet client made to the system in its"
- " last run, by success or failure",
+ description=(
+ "Number of changes the puppet client made to the system in its"
+ " last run, by success or failure"
+ ),
)
_resources_metric = metrics.GaugeMetric(
"puppet/resources",
- description="Number of resources known by the puppet client in its last"
- " run",
+ description=(
+ "Number of resources known by the puppet client in its last run"
+ ),
)
_times_metric = metrics.FloatMetric(
"puppet/times",
@@ -52,7 +57,7 @@
"""Instantiate instance.
Args:
- f: file object to read summary from
+ f: file object to read summary from
"""
self._data = yaml.safe_load(f)