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 .ci/compute_projects.py
.ci/compute_projects_test.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
--- compute_projects_test.py 2026-08-17 10:29:13.000000 +0000
+++ compute_projects_test.py 2026-08-17 10:31:19.470745 +0000
@@ -85,13 +85,11 @@
)
self.assertEqual(env_variables["projects_to_build"],
"clang;flang;llvm")
self.assertEqual(env_variables["project_check_targets"], "check-flang")
self.assertEqual(env_variables["runtimes_to_build"], "")
self.assertEqual(env_variables["runtimes_check_targets"], "")
- self.assertEqual(
- env_variables["runtimes_check_targets_needs_reconfig"], ""
- )
+
self.assertEqual(env_variables["runtimes_check_targets_needs_reconfig"], "")
self.assertEqual(env_variables["enable_cir"], "OFF")
def test_cir_mac(self):
env_variables = compute_projects.get_env_variables(
["clang/lib/CIR/CMakeLists.txt"], "Darwin"
@@ -283,26 +281,22 @@
)
self.assertEqual(env_variables["projects_to_build"],
"clang;flang;lld;llvm")
self.assertEqual(env_variables["project_check_targets"], "check-flang")
self.assertEqual(env_variables["runtimes_to_build"], "flang-rt;openmp")
self.assertEqual(env_variables["runtimes_check_targets"],
"check-flang-rt")
- self.assertEqual(
- env_variables["runtimes_check_targets_needs_reconfig"], ""
- )
+
self.assertEqual(env_variables["runtimes_check_targets_needs_reconfig"], "")
self.assertEqual(env_variables["enable_cir"], "OFF")
def test_openmp_mac(self):
env_variables = compute_projects.get_env_variables(
["openmp/CMakeLists.txt"], "Darwin"
)
self.assertEqual(env_variables["projects_to_build"], "clang;lld")
self.assertEqual(env_variables["project_check_targets"], "")
self.assertEqual(env_variables["runtimes_to_build"], "openmp")
self.assertEqual(env_variables["runtimes_check_targets"], "openmp")
- self.assertEqual(
- env_variables["runtimes_check_targets_needs_reconfig"], ""
- )
+
self.assertEqual(env_variables["runtimes_check_targets_needs_reconfig"], "")
self.assertEqual(env_variables["enable_cir"], "OFF")
def test_invalid_subproject(self):
env_variables = compute_projects.get_env_variables(
["llvm-libgcc/CMakeLists.txt"], "Linux"
``````````
</details>
https://github.com/llvm/llvm-project/pull/216667
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits