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/tests/check-filter.py llvm/utils/lit/lit/LitConfig.py
llvm/utils/lit/lit/TestRunner.py llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/main.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
--- lit/TestRunner.py 2026-05-31 10:27:35.000000 +0000
+++ lit/TestRunner.py 2026-05-31 10:33:18.978049 +0000
@@ -1919,10 +1919,11 @@
# of the subshell.
for filePath in filePaths:
commandLine = "%s && test -e %s" % (commandLine, filePath)
return commandLine
+
def _applyCheckFilter(test, check_filter):
"""Keep only CommandDirective entries whose 0-indexed integer(s)
is/are in check_filter.
"""
if check_filter is None:
--- lit/cl_arguments.py 2026-05-31 10:27:35.000000 +0000
+++ lit/cl_arguments.py 2026-05-31 10:33:19.168863 +0000
@@ -605,21 +605,17 @@
if "-" in tok and tok[0] != "-":
a, sep, b = tok.partition("-")
if a.isdigit() and b.isdigit():
lo, hi = int(a), int(b)
if hi < lo:
- raise _error(
- "range '{}' is empty (high < low)", tok
- )
+ raise _error("range '{}' is empty (high < low)", tok)
out.extend(range(lo, hi + 1))
continue
if tok.isdigit():
out.append(int(tok))
else:
- raise _error(
- "expected integer or integer range, got '{}'", tok
- )
+ raise _error("expected integer or integer range, got '{}'", tok)
if not out:
raise _error("empty selector list")
return out
``````````
</details>
https://github.com/llvm/llvm-project/pull/200618
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits