github astral-sh/ruff v0.0.281

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

What's Changed

See the release blog post for more, including detailed descriptions of any newly added rules.

New rules

Rule changes

  • [flake8-bugbear] Extends B002 to detect unary prefix decrement operators by @tjkuson in #5998
  • [flake8-pytest-style] Avoid raising PT012 for simple with statements by @harupy in #6081
  • [flake8-pytest-style] Allow pytest.raises body to contain a single func or class definition by @harupy in #6083
  • [flake8-simplify] Extend SIM118 with not in by @sbrugman in #5995
  • [perflint] Skip PERF203 violations for multi-statement loops by @charliermarsh in #6145
  • [pyupgrade] Add support for int, float, bool in UP018 by @dhruvmanila in #6013
  • [tryceratops] Add suggested fix for TRY201 by @dhruvmanila in #6008

Settings

Bug Fixes

New Contributors

Full Changelog: v0.0.280...v0.0.281

Don't miss a new ruff release

NewReleases is sending notifications on new releases.