about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorJakub Beránek <jakub.beranek@vsb.cz>2024-12-31 13:14:04 +0100
committerJakub Beránek <jakub.beranek@vsb.cz>2024-12-31 13:14:04 +0100
commit787c2a2c6a6152cdd707ff0eaf8d1429dd874f32 (patch)
tree438925991dd3fa37c2b9f9430044ab8afb5c13da /src/ci/scripts
parentbbb5ca7c79c650e207d7856cb5a38018e81d6ef5 (diff)
downloadrust-787c2a2c6a6152cdd707ff0eaf8d1429dd874f32.tar.gz
rust-787c2a2c6a6152cdd707ff0eaf8d1429dd874f32.zip
Reformat Python file
Diffstat (limited to 'src/ci/scripts')
-rw-r--r--src/ci/scripts/upload-build-metrics.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ci/scripts/upload-build-metrics.py b/src/ci/scripts/upload-build-metrics.py
index 49c068c9a40..915ba953984 100644
--- a/src/ci/scripts/upload-build-metrics.py
+++ b/src/ci/scripts/upload-build-metrics.py
@@ -51,13 +51,23 @@ def upload_datadog_measure(name: str, value: float):
     print(f"Metric {name}: {value:.4f}")
 
     cmd = "npx"
-    if os.getenv("GITHUB_ACTIONS") is not None and sys.platform.lower().startswith("win"):
+    if os.getenv("GITHUB_ACTIONS") is not None and sys.platform.lower().startswith(
+        "win"
+    ):
         # Due to weird interaction of MSYS2 and Python, we need to use an absolute path,
         # and also specify the ".cmd" at the end. See https://github.com/rust-lang/rust/pull/125771.
         cmd = "C:\\Program Files\\nodejs\\npx.cmd"
 
     subprocess.run(
-        [cmd, "datadog-ci", "measure", "--level", "job", "--measures", f"{name}:{value}"],
+        [
+            cmd,
+            "datadog-ci",
+            "measure",
+            "--level",
+            "job",
+            "--measures",
+            f"{name}:{value}",
+        ],
         check=False,
     )