Skip to content

Commit 787c2a2

Browse files
committed
Reformat Python file
1 parent bbb5ca7 commit 787c2a2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: src/ci/scripts/upload-build-metrics.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,23 @@ def upload_datadog_measure(name: str, value: float):
5151
print(f"Metric {name}: {value:.4f}")
5252

5353
cmd = "npx"
54-
if os.getenv("GITHUB_ACTIONS") is not None and sys.platform.lower().startswith("win"):
54+
if os.getenv("GITHUB_ACTIONS") is not None and sys.platform.lower().startswith(
55+
"win"
56+
):
5557
# Due to weird interaction of MSYS2 and Python, we need to use an absolute path,
5658
# and also specify the ".cmd" at the end. See https://github.com/rust-lang/rust/pull/125771.
5759
cmd = "C:\\Program Files\\nodejs\\npx.cmd"
5860

5961
subprocess.run(
60-
[cmd, "datadog-ci", "measure", "--level", "job", "--measures", f"{name}:{value}"],
62+
[
63+
cmd,
64+
"datadog-ci",
65+
"measure",
66+
"--level",
67+
"job",
68+
"--measures",
69+
f"{name}:{value}",
70+
],
6171
check=False,
6272
)
6373

0 commit comments

Comments
 (0)