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/test/API/commands/frame/var-dil/basics/CaseSensitiveLookup/TestFrameVarDILCaseSensitiveLookup.py
 lldb/test/API/lang/fortran/complex/TestFortranComplex.py 
lldb/test/API/lang/fortran/frame-variable/TestFortranFrameVariable.py 
lldb/test/API/lang/fortran/integer/TestFortranIntegers.py 
lldb/test/API/lang/fortran/logical/TestFortranLogicals.py 
lldb/test/API/lang/fortran/real/TestFortranReal.py 
lldb/packages/Python/lldbsuite/test/builders/builder.py 
lldb/packages/Python/lldbsuite/test/dotest.py 
lldb/packages/Python/lldbsuite/test/dotest_args.py lldb/test/API/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
--- packages/Python/lldbsuite/test/builders/builder.py  2026-08-01 
10:34:57.000000 +0000
+++ packages/Python/lldbsuite/test/builders/builder.py  2026-08-01 
10:36:29.537532 +0000
@@ -209,12 +209,12 @@
             "CXX=%s" % cxx,
         ]
 
         fc = configuration.fortran_compiler
         if fc:
-            build_cmd.append("FC=%s" % fc)  
-            
+            build_cmd.append("FC=%s" % fc)
+
         return build_cmd + utils
 
     def getModuleCacheSpec(self):
         """
         Helper function to return the key-value string to specify the clang
--- packages/Python/lldbsuite/test/dotest.py    2026-08-01 10:34:57.000000 +0000
+++ packages/Python/lldbsuite/test/dotest.py    2026-08-01 10:36:29.858132 +0000
@@ -264,18 +264,19 @@
             candidateCompilers = ["clang-3.5", "clang", "gcc"]
             for candidate in candidateCompilers:
                 if which(candidate):
                     configuration.compiler = candidate
                     break
-    
+
     if args.fortran_compiler:
         configuration.fortran_compiler = os.path.abspath(args.fortran_compiler)
         if not is_exe(configuration.fortran_compiler):
             configuration.fortran_compiler = which(args.fortran_compiler)
         if not is_exe(configuration.fortran_compiler):
             logging.error(
-                '"%s" is not a valid Fortran compiler executable; 
aborting...', args.fortran_compiler
+                '"%s" is not a valid Fortran compiler executable; aborting...',
+                args.fortran_compiler,
             )
             sys.exit(-1)
     else:
         # If no Fortran compiler was explicitly specified, search for local 
fallbacks.
         candidateFortranCompilers = ["flang-new", "flang", "gfortran"]
--- packages/Python/lldbsuite/test/dotest_args.py       2026-08-01 
10:34:57.000000 +0000
+++ packages/Python/lldbsuite/test/dotest_args.py       2026-08-01 
10:36:29.990622 +0000
@@ -47,18 +47,18 @@
         help=textwrap.dedent(
             """Specify the compiler(s) used to build the inferior executables. 
The compiler path can be an executable basename or a full path to a compiler 
executable. This option can be specified multiple times."""
         ),
     )
     group.add_argument(
-        '--fortran-compiler',
+        "--fortran-compiler",
         metavar="fortran_compiler",
-        dest='fortran_compiler',
+        dest="fortran_compiler",
         default="",
         help=textwrap.dedent(
             """The Fortran compiler used to build the test programs."""
         ),
-    )   
+    )
     group.add_argument(
         "--sysroot",
         metavar="sysroot",
         dest="sysroot",
         default="",
--- test/API/lang/fortran/complex/TestFortranComplex.py 2026-08-01 
10:34:52.000000 +0000
+++ test/API/lang/fortran/complex/TestFortranComplex.py 2026-08-01 
10:36:30.019067 +0000
@@ -7,11 +7,10 @@
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
 
 
 class FortranTestComplex(TestBase):
-
     def test_fortran_complex(self):
         """Tests if complex return the correct name, kind and value."""
         self.build()
         self.main_source_file = lldb.SBFileSpec("complex.f90")
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
--- test/API/lang/fortran/frame-variable/TestFortranFrameVariable.py    
2026-08-01 10:34:52.000000 +0000
+++ test/API/lang/fortran/frame-variable/TestFortranFrameVariable.py    
2026-08-01 10:36:30.030704 +0000
@@ -7,11 +7,10 @@
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
 
 
 class FortranTestFrameVariable(TestBase):
-
     def test_fortran_frame_variable(self):
         """Tests if frame variable outputs the expected results"""
         self.build()
         self.main_source_file = lldb.SBFileSpec("frame.f90")
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
@@ -20,8 +19,12 @@
 
         self.expect("frame variable num_int", substrs=["(INTEGER) num_int = 
152"])
 
         self.expect("frame variable num_real", substrs=["(REAL) num_real = 
2.718"])
 
-        self.expect("frame variable num_logical", substrs=["(LOGICAL) 
num_logical = true"])
+        self.expect(
+            "frame variable num_logical", substrs=["(LOGICAL) num_logical = 
true"]
+        )
 
-        self.expect("frame variable num_complex", substrs=["(COMPLEX) 
num_complex = (1.3, 2.6)"])
+        self.expect(
+            "frame variable num_complex", substrs=["(COMPLEX) num_complex = 
(1.3, 2.6)"]
+        )
--- test/API/lang/fortran/integer/TestFortranIntegers.py        2026-08-01 
10:34:52.000000 +0000
+++ test/API/lang/fortran/integer/TestFortranIntegers.py        2026-08-01 
10:36:30.050052 +0000
@@ -7,11 +7,10 @@
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
 
 
 class FortranTestIntegers(TestBase):
-
     def test_fortran_integers(self):
         """Tests if integers return the correct name, kind and value."""
         self.build()
         self.main_source_file = lldb.SBFileSpec("integers.f90")
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
@@ -29,11 +28,11 @@
         short_int = frame.FindVariable("short_int")
         self.assertSuccess(short_int.GetError(), "Failed to fetch short_int")
         self.assertEqual(short_int.GetTypeName(), "INTEGER(KIND=2)")
         self.assertEqual(short_int.GetByteSize(), 2)
         self.assertEqual(short_int.GetValueAsSigned(), 32767)
-        
+
         normal_int = frame.FindVariable("normal_int")
         self.assertSuccess(normal_int.GetError(), "Failed to fetch normal_int")
         self.assertEqual(normal_int.GetTypeName(), "INTEGER")
         self.assertEqual(normal_int.GetByteSize(), 4)
         self.assertEqual(normal_int.GetValueAsSigned(), 2147483647)
--- test/API/lang/fortran/logical/TestFortranLogicals.py        2026-08-01 
10:34:52.000000 +0000
+++ test/API/lang/fortran/logical/TestFortranLogicals.py        2026-08-01 
10:36:30.068938 +0000
@@ -7,11 +7,10 @@
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
 
 
 class FortranTestLogicals(TestBase):
-
     def test_fortran_logicals(self):
         """Tests if logicals return the correct name, kind and value."""
         self.build()
         self.main_source_file = lldb.SBFileSpec("logical.f90")
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
@@ -29,11 +28,11 @@
         bool_two = frame.FindVariable("bool_two")
         self.assertSuccess(bool_two.GetError(), "Failed to fetch bool_two")
         self.assertEqual(bool_two.GetTypeName(), "LOGICAL(KIND=2)")
         self.assertEqual(bool_two.GetByteSize(), 2)
         self.assertEqual(bool_two.GetValue(), "false")
-        
+
         bool_four = frame.FindVariable("bool_four")
         self.assertSuccess(bool_four.GetError(), "Failed to fetch bool_four")
         self.assertEqual(bool_four.GetTypeName(), "LOGICAL")
         self.assertEqual(bool_four.GetByteSize(), 4)
         self.assertEqual(bool_four.GetValue(), "true")
--- test/API/lang/fortran/real/TestFortranReal.py       2026-08-01 
10:34:52.000000 +0000
+++ test/API/lang/fortran/real/TestFortranReal.py       2026-08-01 
10:36:30.085325 +0000
@@ -7,27 +7,30 @@
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
 
 
 class FortranTestReal(TestBase):
-
     def test_fortran_real(self):
         """Tests if Real type return the correct name, kind and value."""
         self.build()
         self.main_source_file = lldb.SBFileSpec("real.f90")
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
             self, "! Breakpoint here", self.main_source_file
         )
 
         frame = thread.GetFrameAtIndex(0)
-        
+
         float_four = frame.FindVariable("float_four")
         self.assertSuccess(float_four.GetError(), "Failed to fetch float_four")
         self.assertEqual(float_four.GetTypeName(), "REAL")
         self.assertEqual(float_four.GetByteSize(), 4)
-        self.assertTrue(float_four.GetValue().startswith("3.14"), "float_four 
value is correct")
+        self.assertTrue(
+            float_four.GetValue().startswith("3.14"), "float_four value is 
correct"
+        )
 
         float_eight = frame.FindVariable("float_eight")
         self.assertSuccess(float_eight.GetError(), "Failed to fetch 
float_eight")
         self.assertEqual(float_eight.GetTypeName(), "REAL(KIND=8)")
         self.assertEqual(float_eight.GetByteSize(), 8)
-        self.assertTrue(float_eight.GetValue().startswith("2.718"), 
"float_eight value is correct")
+        self.assertTrue(
+            float_eight.GetValue().startswith("2.718"), "float_eight value is 
correct"
+        )

``````````

</details>


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

Reply via email to