[llvm-branch-commits] [llvm] Users/paschalis mpeis/nfc check improve file handling (PR #146513)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jul 1 04:45:24 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 HEAD~1...HEAD bolt/utils/nfc-check-setup.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- nfc-check-setup.py	2025-07-01 11:37:31.000000 +0000
+++ nfc-check-setup.py	2025-07-01 11:44:58.806737 +0000
@@ -79,11 +79,11 @@
     bolt_path = f"{args.build_dir}/bin/llvm-bolt"
 
     source_dir = None
     # find the repo directory
     try:
-        CMCacheFilename=f"{args.build_dir}/CMakeCache.txt"
+        CMCacheFilename = f"{args.build_dir}/CMakeCache.txt"
         with open(CMCacheFilename) as f:
             for line in f:
                 m = re.match(r"LLVM_SOURCE_DIR:STATIC=(.*)", line)
                 if m:
                     source_dir = m.groups()[0]

``````````

</details>


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


More information about the llvm-branch-commits mailing list