[llvm] [lit] Use `.format()` over format strings literals (PR #155912)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 13:07:41 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/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-08-28 20:02:54.000000 +0000
+++ lit.cfg.py	2025-08-28 20:07:08.435182 +0000
@@ -319,11 +319,13 @@
 def ptxas_supported_isa_versions(ptxas, major_version, minor_version):
     supported_isa_versions = ptxas_isa_versions(ptxas)
     if supported_isa_versions:
         return supported_isa_versions
     if major_version >= 13:
-        raise RuntimeError("ptxas {} does not support ISA version listing".format(ptxas))
+        raise RuntimeError(
+            "ptxas {} does not support ISA version listing".format(ptxas)
+        )
 
     cuda_version_to_isa_version = {
         (12, 9): [(8, 8)],
         (12, 8): [(8, 7)],
         (12, 7): [(8, 6)],

``````````

</details>


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


More information about the llvm-commits mailing list