diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b9742392..c6914b270 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 e27cfe2ce..b7a3efbab 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 diff --git a/extra_tests/snippets/builtin_filter.py b/extra_tests/snippets/builtin_filter.py index 25c00803c..f778fd0cf 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 @@ 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