[llvm] [MLIR] [Python] Added plumbing to run stubgen on the mlir._mlir package (PR #179211)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 2 03:56:31 PST 2026
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 utils/bazel/llvm-project-overlay/mlir/stubgen_runner.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
--- stubgen_runner.py 2026-02-02 11:53:40.000000 +0000
+++ stubgen_runner.py 2026-02-02 11:56:01.663121 +0000
@@ -27,12 +27,16 @@
return module_name
def main():
parser = argparse.ArgumentParser()
- parser.add_argument("--module", required=True, help="Module name to generate stubs for")
- parser.add_argument("--deps", required=True, help="Comma-separated .so files to load")
+ parser.add_argument(
+ "--module", required=True, help="Module name to generate stubs for"
+ )
+ parser.add_argument(
+ "--deps", required=True, help="Comma-separated .so files to load"
+ )
parser.add_argument("-o", "--output", required=True, help="Output directory")
args = parser.parse_args()
for dep_path in args.deps.split(","):
load_extension(Path(dep_path).resolve())
``````````
</details>
https://github.com/llvm/llvm-project/pull/179211
More information about the llvm-commits
mailing list