[llvm] [GitHub][CI] Remove 'Set Safe Directory' step (PR #165052)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 15:53:04 PDT 2025


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:50:43.000000 +0000
+++ code-format-helper.py	2025-10-24 22:52:27.314800 +0000
@@ -280,13 +280,13 @@
     name = "darker"
     friendly_name = "Python code formatter"
 
     def _construct_command(self, diff_expression: str | None) -> str:
         darker_cmd = [
-        self.darker_fmt_path,
-        "--check",
-        "--diff",
+            self.darker_fmt_path,
+            "--check",
+            "--diff",
         ]
         if diff_expression:
             darker_cmd += ["-r", diff_expression]
         darker_cmd += self._py_files
         return darker_cmd

``````````

</details>


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


More information about the llvm-commits mailing list