Change8

0.14.2

📦 ruffView on GitHub →
3 features🐛 10 fixes🔧 17 symbols

Summary

Ruff 0.14.2 adds a preview feature for flake8-gettext, improves CLI JSON output, and introduces DiagnosticTag support, while fixing numerous bugs across fastapi, pyupgrade, and other rules.

Migration Steps

  1. Upgrade to ruff 0.14.2 using the installer script or by downloading the appropriate binary for your platform; no migration steps are required because there are no breaking changes.

✨ New Features

  • Preview feature: flake8-gettext resolves qualified names and built-in bindings (INT001, INT002, INT003).
  • CLI: Improved JSON output from `ruff rule` command.
  • Rule changes: Use DiagnosticTag for more pyflakes and pandas rules.

🐛 Bug Fixes

  • Avoid reusing nested, interpolated quotes before Python 3.12.
  • Catch syntax errors in nested interpolations before Python 3.12.
  • fastapi: Handle ellipsis defaults in FAST002 autofix.
  • flake8-simplify: Skip SIM911 when unknown arguments are present.
  • pyupgrade: Always parenthesize assignment expressions in fix for f-string (UP032).
  • pyupgrade: Fix UP032 conversion for decimal ints with underscores.
  • fastapi: Skip autofix for keyword and __debug__ path params (FAST003).
  • flake8-bugbear: Skip B905 and B912 for fewer than two iterables and no starred arguments.
  • syntax-errors: Name is parameter and global.
  • syntax-errors: Alternative match patterns bind different names.

🔧 Affected Symbols

INT001INT002INT003FAST002FAST003SIM911UP032B905B912DiagnosticTagflake8_gettextfastapiflake8_simplifypyupgradeflake8_bugbearruffsyntax_errors