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 clang/test/lit.cfg.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
--- lit.cfg.py  2025-12-04 02:11:50.000000 +0000
+++ lit.cfg.py  2025-12-04 02:13:44.037272 +0000
@@ -87,11 +87,13 @@
 
 config.substitutions.append(("%target_triple", config.target_triple))
 
 config.substitutions.append(("%PATH%", config.environment["PATH"]))
 
-sed_cmd = "/opt/freeware/bin/sed" if "system-aix" in config.available_features 
else "sed"
+sed_cmd = (
+    "/opt/freeware/bin/sed" if "system-aix" in config.available_features else 
"sed"
+)
 
 # Filtering command for testing SARIF output against reference output.
 config.substitutions.append(
     (
         "%normalize_sarif",
@@ -101,11 +103,11 @@
             r's/"version": "2.1.0"/"version": "[SARIF version]"/',
             r's/"version": ".*[0-9]+\.[0-9]+\.[0-9]+.*"/"version": "[clang 
version]"/',
             # Strip directories from file URIs
             r's/"file:(\/+)([^"\/]+\/)*([^"]+)"/"file:\1[...]\/\3"/',
             # Set "length" to -1
-            r's/"length": [[:digit:]]+/"length": -1/'
+            r's/"length": [[:digit:]]+/"length": -1/',
         ),
     )
 )
 # For each occurrence of a clang tool name, replace it with the full path to
 # the build directory holding that tool.  We explicitly specify the directories

``````````

</details>


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

Reply via email to