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/git/code-format-helper.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
--- code-format-helper.py       2025-10-24 22:06:14.000000 +0000
+++ code-format-helper.py       2025-10-24 22:07:45.751153 +0000
@@ -263,11 +263,11 @@
         if args.verbose:
             print(f"Running: {' '.join(cf_cmd)}")
         proc = subprocess.run(cf_cmd, stdout=subprocess.PIPE, 
stderr=subprocess.PIPE)
         sys.stdout.write(proc.stderr.decode("utf-8"))
 
-        if proc.returncode    != 0:
+        if proc.returncode != 0:
             # formatting needed, or the command otherwise failed
             if args.verbose:
                 print(f"error: {self.name} exited with code {proc.returncode}")
                 # Print the diff in the log so that it is viewable there
                 print(proc.stdout.decode("utf-8"))

``````````

</details>


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

Reply via email to