Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-auto-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions extra_tests/snippets/builtin_filter.py
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions extra_tests/snippets/stdlib_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down