[Mlir-commits] [mlir] [MLIR][Python] demo building bindings with no CAPI aggregate and using mlir aggregate (PR #161782)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 2 22:24:32 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 origin/main...HEAD mlir/examples/standalone/python/really_alone/mlir_standreallyalone/dialects/_ods_common.py mlir/examples/standalone/python/really_alone/mlir_standreallyalone/dialects/standalonereallyalone.py mlir/examples/standalone/test/python/smoketest_really_alone.py mlir/test/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
--- examples/standalone/python/really_alone/mlir_standreallyalone/dialects/standalonereallyalone.py 2025-10-03 05:19:58.000000 +0000
+++ examples/standalone/python/really_alone/mlir_standreallyalone/dialects/standalonereallyalone.py 2025-10-03 05:24:07.309282 +0000
@@ -1,9 +1,10 @@
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
from ._ods_common import _cext
+
_cext.globals.append_dialect_search_prefix("mlir_standreallyalone.dialects")
from ._standalone_ops_gen import *
from .._mlir_libs._standReallyAloneDialectsNanobind.standalone import *
--- test/lit.cfg.py 2025-10-03 05:19:58.000000 +0000
+++ test/lit.cfg.py 2025-10-03 05:24:07.484385 +0000
@@ -337,11 +337,18 @@
llvm_config.with_environment(
"PYTHONPATH",
[
os.path.join(config.mlir_obj_root, "python_packages", "mlir_core"),
os.path.join(config.mlir_obj_root, "python_packages", "mlir_test"),
- os.path.join(config.mlir_obj_root, "test", "Examples", "standalone", "python_packages", "standalone")
+ os.path.join(
+ config.mlir_obj_root,
+ "test",
+ "Examples",
+ "standalone",
+ "python_packages",
+ "standalone",
+ ),
],
append_path=True,
)
if config.enable_assertions:
``````````
</details>
https://github.com/llvm/llvm-project/pull/161782
More information about the Mlir-commits
mailing list