Skip to content

Commit 72570c5

Browse files
authored
Update CI ruff to 0.15.4 (#7250)
* Update CI ruff to 0.15.4 * Format
1 parent 2447d99 commit 72570c5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ jobs:
486486
- name: Install ruff
487487
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
488488
with:
489-
version: "0.14.11"
489+
version: "0.15.4"
490490
args: "--version"
491491

492492
- run: ruff check --diff

.github/workflows/pr-auto-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install ruff
5353
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
5454
with:
55-
version: "0.14.11"
55+
version: "0.15.4"
5656
args: "--version"
5757

5858
- name: Run ruff format

extra_tests/snippets/builtin_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
assert list(filter(lambda x: ((x % 2) == 0), [0, 1, 2])) == [0, 2]
1+
assert list(filter(lambda x: (x % 2) == 0, [0, 1, 2])) == [0, 2]
22

33
# None implies identity
44
assert list(filter(None, [0, 1, 2])) == [1, 2]
@@ -18,7 +18,7 @@ def __iter__(self):
1818
return self
1919

2020

21-
it = filter(lambda x: ((x % 2) == 0), Counter())
21+
it = filter(lambda x: (x % 2) == 0, Counter())
2222
assert next(it) == 2
2323
assert next(it) == 4
2424

0 commit comments

Comments
 (0)