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 libcxx/utils/libcxx/test/config.py 
libcxx/utils/libcxx/test/format.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
--- config.py   2026-09-23 07:30:36.000000 +0000
+++ config.py   2026-09-23 07:36:37.200079 +0000
@@ -49,10 +49,21 @@
                     action.pretty(config, lit_config.params), 
feature.pretty(config)
                 )
             )
 
     # Print the basic substitutions
-    for sub in ("%{cxx}", "%{flags}", "%{compile_flags}", "%{link_flags}", 
"%{benchmark_flags}", "%{exec}"):
-        debug("Using {} substitution: '{}'".format(sub, _getSubstitution(sub, 
config.substitutions)))
+    for sub in (
+        "%{cxx}",
+        "%{flags}",
+        "%{compile_flags}",
+        "%{link_flags}",
+        "%{benchmark_flags}",
+        "%{exec}",
+    ):
+        debug(
+            "Using {} substitution: '{}'".format(
+                sub, _getSubstitution(sub, config.substitutions)
+            )
+        )
 
     # Print all available features
     note("All available features: {}".format(", 
".join(sorted(config.available_features))))
--- format.py   2026-09-23 07:30:36.000000 +0000
+++ format.py   2026-09-23 07:36:37.355086 +0000
@@ -29,11 +29,18 @@
     return tmpDir, tmpBase
 
 
 def _checkBaseSubstitutions(substitutions):
     substitutions = [s for (s, _) in substitutions]
-    for s in ["%{cxx}", "%{compile_flags}", "%{link_flags}", 
"%{benchmark_flags}", "%{flags}", "%{exec}"]:
+    for s in [
+        "%{cxx}",
+        "%{compile_flags}",
+        "%{link_flags}",
+        "%{benchmark_flags}",
+        "%{flags}",
+        "%{exec}",
+    ]:
         assert s in substitutions, "Required substitution {} was not 
provided".format(s)
 
 def _executeScriptInternal(test, litConfig, commands):
     """
     Returns (stdout, stderr, exitCode, timeoutInfo, parsedCommands, 
testUpdateOutput), or an appropriate lit.Test.Result

``````````

</details>


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

Reply via email to