[llvm] [lit] Add an option to lit which ratelimits progressbar output. (PR #186479)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 04:14:28 PDT 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 llvm/utils/lit/lit/ProgressBar.py llvm/utils/lit/lit/cl_arguments.py llvm/utils/lit/lit/display.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
--- cl_arguments.py 2026-04-04 11:12:28.000000 +0000
+++ cl_arguments.py 2026-04-04 11:13:58.172474 +0000
@@ -566,10 +566,12 @@
f = float(arg)
except ValueError:
raise _error(desc, kind, arg)
if not pred(f):
raise _error(desc, kind, arg)
+
+
def _float(arg, kind, pred):
try:
f = float(arg)
if not pred(f):
raise ValueError()
``````````
</details>
https://github.com/llvm/llvm-project/pull/186479
More information about the llvm-commits
mailing list