Update CI ruff to 0.15.4 (#7250)

* Update CI ruff to 0.15.4

* Format
This commit is contained in:
Shahar Naveh authored and GitHub committed 2026-02-28 10:34:38 +09:00
1 parent 7f8a3a969f
commit 79983fdd2e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -486,7 +486,7 @@ jobs:
- name: Install ruff
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
with:
version: "0.14.11"
version: "0.15.4"
args: "--version"
- run: ruff check --diff
+1 -1
View File
@@ -52,7 +52,7 @@ jobs:
- name: Install ruff
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
with:
version: "0.14.11"
version: "0.15.4"
args: "--version"
- name: Run ruff format
+2 -2
View File
@@ -1,4 +1,4 @@
assert list(filter(lambda x: ((x % 2) == 0), [0, 1, 2])) == [0, 2]
assert list(filter(lambda x: (x % 2) == 0, [0, 1, 2])) == [0, 2]
# None implies identity
assert list(filter(None, [0, 1, 2])) == [1, 2]
@@ -18,7 +18,7 @@ class Counter(object):
return self
it = filter(lambda x: ((x % 2) == 0), Counter())
it = filter(lambda x: (x % 2) == 0, Counter())
assert next(it) == 2
assert next(it) == 4