Skip to content

v0.0.292

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Oct 17:15
· 1954 commits to main since this release
c6d0bdd

What's Changed

Highlights

This release includes full support for Python 3.12 (out now!), including the new type parameter (PEP 695) and f-string syntaxes (PEP 701).

PEP 701 lifts many of the restrictions on f-strings that existed in the past, allowing for arbitrarily nested f-strings, consistent quote style within f-strings, and more, all of which are now supported by Ruff (thanks to @dhruvmanila in #7376).

Breaking Changes

  • In the formatter, format.quote-style no longer affects triple-quoted strings, to align with common conventions as well as the guidance from PEP 8 and PEP 257 (see: #7680).
  • line-too-long (E501) now ignores trailing pragma comments (like # type: ignore and # noqa) when computing line length (see: #7692). This is similar to flake8-bugbear's methodology for detecting overlong lines, and ensures that adding pragmas like # noqa does not introduce further lint errors.

Rules

  • [refurb] Implement print-empty-string (FURB105) by @tjkuson in #7617
  • [flake8-bandit] Implement weak-cryptographic-key (S505) by @mkniewallner in #7703
  • [refurb] Implement implicit-cwd (FURB177) by @danparizher in #7704
  • unnecessary-pass (PIE790) now flags all unnecessary pass statements; previously, the rule only flagged pass statements that followed a docstring in a two-statement body (see: #7697).

Settings

Bug Fixes

Other Changes

New Contributors

Full Changelog: v0.0.291...v0.0.292