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 
lldb/packages/Python/lldbsuite/test/configuration.py 
lldb/packages/Python/lldbsuite/test/dotest.py 
lldb/packages/Python/lldbsuite/test/lldbtest.py 
lldb/test/API/macosx/arm-corefile-regctx/TestArmMachoCorefileRegctx.py 
lldb/test/API/macosx/riscv32-corefile/TestRV32MachOCorefile.py
``````````

</details>

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

``````````diff
--- packages/Python/lldbsuite/test/configuration.py     2025-08-16 
01:23:10.000000 +0000
+++ packages/Python/lldbsuite/test/configuration.py     2025-08-16 
01:39:39.780295 +0000
@@ -176,10 +176,11 @@
     Get the path to the yaml2obj tool.
     """
     if yaml2obj and os.path.lexists(yaml2obj):
         return yaml2obj
 
+
 def get_yaml2macho_core_path():
     """
     Get the path to the yaml2macho-core tool.
     """
     if yaml2macho_core and os.path.lexists(yaml2macho_core):
--- packages/Python/lldbsuite/test/dotest.py    2025-08-16 01:23:10.000000 +0000
+++ packages/Python/lldbsuite/test/dotest.py    2025-08-16 01:39:40.074995 +0000
@@ -278,11 +278,13 @@
         )
     if args.llvm_tools_dir:
         configuration.llvm_tools_dir = args.llvm_tools_dir
         configuration.filecheck = shutil.which("FileCheck", 
path=args.llvm_tools_dir)
         configuration.yaml2obj = shutil.which("yaml2obj", 
path=args.llvm_tools_dir)
-        configuration.yaml2macho_core = shutil.which("yaml2macho-core", 
path=args.llvm_tools_dir)
+        configuration.yaml2macho_core = shutil.which(
+            "yaml2macho-core", path=args.llvm_tools_dir
+        )
 
     if not configuration.get_filecheck_path():
         logging.warning("No valid FileCheck executable; some tests may 
fail...")
         logging.warning("(Double-check the --llvm-tools-dir argument to 
dotest.py)")
 
--- packages/Python/lldbsuite/test/lldbtest.py  2025-08-16 01:23:10.000000 +0000
+++ packages/Python/lldbsuite/test/lldbtest.py  2025-08-16 01:39:40.828916 +0000
@@ -1710,13 +1710,21 @@
         """
         yaml2macho_core_bin = configuration.get_yaml2macho_core_path()
         if not yaml2macho_core_bin:
             self.assertTrue(False, "No valid yaml2macho-core executable 
specified")
         if uuids != None:
-          command = [yaml2macho_core_bin, "-i", yaml_path, "-o", obj_path, 
"-u", uuids]
+            command = [
+                yaml2macho_core_bin,
+                "-i",
+                yaml_path,
+                "-o",
+                obj_path,
+                "-u",
+                uuids,
+            ]
         else:
-          command = [yaml2macho_core_bin, "-i", yaml_path, "-o", obj_path]
+            command = [yaml2macho_core_bin, "-i", yaml_path, "-o", obj_path]
         self.runBuildCommand(command)
 
     def cleanup(self, dictionary=None):
         """Platform specific way to do cleanup after build."""
         module = builder_module()

``````````

</details>


https://github.com/llvm/llvm-project/pull/153911
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to