[llvm] Refactored verbosity flag in mlgo-utils to common location #107898 (PR #128541)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 10:22:01 PST 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 a0be17dc91d054290910b5787f41900fb6ef0d6e...651fbfe823fcaac469f92c2556d4ef35ea43d1ce llvm/utils/mlgo-utils/mlgo/corpus/parser_setup_lib.py llvm/utils/mlgo-utils/mlgo/corpus/combine_training_corpus.py llvm/utils/mlgo-utils/mlgo/corpus/extract_ir.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- extract_ir.py	2025-02-24 17:42:01.000000 +0000
+++ extract_ir.py	2025-02-24 18:21:26.385460 +0000
@@ -109,11 +109,11 @@
         "default .llvmbc is correct. For Mach-O object files, one should use "
         "__LLVM,__bitcode",
         default=".llvmbc",
         nargs="?",
     )
-    parser_setup_lib.add_verbosity_arguments(parser) 
+    parser_setup_lib.add_verbosity_arguments(parser)
     args = parser.parse_args()
     main(args)
 
 
 def main(args):
--- parser_setup_lib.py	2025-02-24 17:42:01.000000 +0000
+++ parser_setup_lib.py	2025-02-24 18:21:26.401022 +0000
@@ -2,10 +2,11 @@
 # See https://llvm.org/LICENSE.txt for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 """Library functions for setting up common parser arguments"""
 
 from argparse import ArgumentParser
+
 
 def add_verbosity_arguments(parser: ArgumentParser) -> None:
     """Adds the arguments for verbosity to the ArgumentParser
 
     Arguments:

``````````

</details>


https://github.com/llvm/llvm-project/pull/128541


More information about the llvm-commits mailing list