From ad4ed8aed70a155769d58b1c5fa338f02d3850a9 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:35:40 +0100 Subject: [PATCH 1/2] Update CI ruff to 0.15.4 --- .github/workflows/ci.yaml | 2 +- .github/workflows/pr-auto-commit.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b9742392bb..c6914b2705d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/pr-auto-commit.yaml b/.github/workflows/pr-auto-commit.yaml index e27cfe2ce16..b7a3efbab93 100644 --- a/.github/workflows/pr-auto-commit.yaml +++ b/.github/workflows/pr-auto-commit.yaml @@ -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 From 0375ffd07bcff4cf1a46806e4467af010e03e468 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 27 Feb 2026 15:06:54 +0100 Subject: [PATCH 2/2] Format --- extra_tests/snippets/builtin_filter.py | 4 ++-- extra_tests/snippets/stdlib_io.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extra_tests/snippets/builtin_filter.py b/extra_tests/snippets/builtin_filter.py index 25c00803c41..f778fd0cfe9 100644 --- a/extra_tests/snippets/builtin_filter.py +++ b/extra_tests/snippets/builtin_filter.py @@ -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 @@ def __iter__(self): 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 diff --git a/extra_tests/snippets/stdlib_io.py b/extra_tests/snippets/stdlib_io.py index f1e682b5d24..25985e08968 100644 --- a/extra_tests/snippets/stdlib_io.py +++ b/extra_tests/snippets/stdlib_io.py @@ -41,6 +41,7 @@ nres = fio.read(2) assert len(nres) == 2 + # Test that IOBase.isatty() raises ValueError when called on a closed file. # Minimal subclass that inherits IOBase.isatty() without overriding it. class MinimalRaw(RawIOBase):