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 
lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py 
lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py 
lldb/test/API/tools/lldb-dap/launch/io/TestDAP_launch_io.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
--- test/API/tools/lldb-dap/launch/TestDAP_launch.py    2026-01-20 
16:00:11.000000 +0000
+++ test/API/tools/lldb-dap/launch/TestDAP_launch.py    2026-01-20 
16:01:45.793592 +0000
@@ -653,11 +653,14 @@
         self.build_and_create_debug_adapter()
         program = self.getBuildArtifact("a.out")
 
         with tempfile.NamedTemporaryFile("rt") as f:
             self.launch(
-                program, console="integratedTerminal", stdout_path=f.name, 
stderr_path=f.name
+                program,
+                console="integratedTerminal",
+                stdout_path=f.name,
+                stderr_path=f.name,
             )
             self.continue_to_exit()
             lines = f.readlines()
             self.assertIn(
                 program, lines[0], "make sure program path is in first 
argument"
--- test/API/tools/lldb-dap/launch/io/TestDAP_launch_io.py      2026-01-20 
16:00:11.000000 +0000
+++ test/API/tools/lldb-dap/launch/io/TestDAP_launch_io.py      2026-01-20 
16:01:45.930946 +0000
@@ -81,11 +81,13 @@
         program_args = [args_text] if with_args else None
 
         with NamedTemporaryFile("w+t") as stdin:
             stdin.write(input_text)
             stdin.flush()
-            self.launch(program, stdin_path=stdin.name, console=console, 
args=program_args)
+            self.launch(
+                program, stdin_path=stdin.name, console=console, 
args=program_args
+            )
             self.continue_to_exit()
 
             stdout_text = self._get_debuggee_stdout()
             stderr_text = self._get_debuggee_stderr()
 

``````````

</details>


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

Reply via email to