Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

Apply rules that seem new to ruff 0.12, and assorted preview rules.

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

FURB122 Use of `write` in a for loop
UP045 Use `X | None` for type annotations
PYI061 Use `Literal[...] | None` rather than `Literal[None, ...]`
FURB113 Use `.extend()` instead of repeatedly calling `.append()`
FURB140 Use `itertools.starmap` instead of the generator
RUF027 Possible f-string without an `f` prefix
RUF038 `Literal[True, False, ...]` can be replaced with `Literal[...] | bool`
RUF056 Avoid providing a falsy fallback to `dict.get()` in boolean test positions.
       The default fallback `None` is already falsy.
@dcherian dcherian merged commit 24e83ac into pydata:main Jun 20, 2025
31 of 33 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the ruff branch June 20, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants