[llvm-branch-commits] fixup! [UTC] Strip only standalone positional %s in update_test_checks.py (PR #221156)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 4 00:15:24 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD llvm/utils/update_test_checks.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- update_test_checks.py	2026-09-04 07:13:16.000000 +0000
+++ update_test_checks.py	2026-09-04 07:14:49.329176 +0000
@@ -70,11 +70,13 @@
         if not filecheck_cmd.startswith("FileCheck "):
             common.warn("Skipping non-FileChecked RUN line: " + l)
             continue
 
         tool_cmd_args = tool_cmd[len(tool_basename) :].strip()
-        tool_cmd_args = re.sub(r"(?:^|\s)(?:<\s*)?%s(?=\s|$)", "", tool_cmd_args).strip()
+        tool_cmd_args = re.sub(
+            r"(?:^|\s)(?:<\s*)?%s(?=\s|$)", "", tool_cmd_args
+        ).strip()
         check_prefixes = common.get_check_prefixes(filecheck_cmd)
 
         # FIXME: We should use multiple check prefixes to common check lines. For
         # now, we just ignore all but the last.
         prefix_list.append((check_prefixes, tool_cmd_args, preprocess_cmd))

``````````

</details>


https://github.com/llvm/llvm-project/pull/221156


More information about the llvm-branch-commits mailing list