From 01a82353195e8e7ccd88f616ef5629b3369f17c6 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Thu, 25 Apr 2024 13:45:43 +0300 Subject: [PATCH] mark this editing of a mutable while looping as okay --- cwltest/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwltest/main.py b/cwltest/main.py index f93a279..321a9b1 100644 --- a/cwltest/main.py +++ b/cwltest/main.py @@ -132,7 +132,7 @@ def main() -> int: for t in tests: if t.get("label"): logger.warning("The `label` field is deprecated. Use `id` field instead.") - t["short_name"] = t["label"] + t["short_name"] = t["label"] # noqa: B909 elif t.get("id"): if isinstance(t.get("id"), str): t["short_name"] = utils.shortname(t["id"])