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 libclc/test/update_libclc_tests.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_libclc_tests.py      2026-06-05 11:05:00.000000 +0000
+++ update_libclc_tests.py      2026-06-05 11:11:51.237250 +0000
@@ -90,11 +90,13 @@
             if feature in features:
                 return True
     return False
 
 
-def process_file(cl_file: Path, triple: str, cpu: str, check_prefix: str, 
clang: Path) -> bool:
+def process_file(
+    cl_file: Path, triple: str, cpu: str, check_prefix: str, clang: Path
+) -> bool:
     original = cl_file.read_bytes()
     orig_lines = original.splitlines(keepends=True)
     saved_run = {i: orig_lines[i] for i in _run_line_indices(original)}
     replace_in_file(cl_file, triple, cpu, check_prefix)
     cmd = [
@@ -139,11 +141,14 @@
             print(f"Error: clang binary not found: {clang}", file=sys.stderr)
             sys.exit(1)
     else:
         clang_in_path = shutil.which("clang")
         if not clang_in_path:
-            print("Error: clang not found in PATH; use --clang-binary to 
specify.", file=sys.stderr)
+            print(
+                "Error: clang not found in PATH; use --clang-binary to 
specify.",
+                file=sys.stderr,
+            )
             sys.exit(1)
         clang = Path(clang_in_path)
 
     arch = args.arch.lower()
     triple = ARCH_TO_TRIPLE[arch]

``````````

</details>


https://github.com/llvm/llvm-project/pull/201806
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to