pypi ruff 0.0.292
v0.0.292

latest releases: 0.7.3, 0.7.2, 0.7.1...
13 months ago

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

Don't miss a new ruff release

NewReleases is sending notifications on new releases.