Change8

0.14.4

📦 ruffView on GitHub →
5 features🐛 4 fixes🔧 8 symbols

Summary

Ruff 0.14.4 adds several preview formatter and refurb enhancements, fixes diagnostics and rule issues, and improves Jupyter notebook support.

✨ New Features

  • Allow newlines after function headers without docstrings in the formatter (preview) (#21110).
  • Avoid extra parentheses for long match patterns with as captures in the formatter (preview) (#21176).
  • Expand fix safety for keyword arguments and Decimal objects in refurb (FURB164) (#21259).
  • Preserve argument ordering in refurb autofix (FURB103) (#20790).
  • Enable `ruff analyze graph` to work with Jupyter notebooks (#21161).

🐛 Bug Fixes

  • Fix missing diagnostics for notebooks in the server (#21156).
  • Ignore non-NFKC attribute names in flake8-bugbear rules B009 and B010 (#21131).
  • Fix false negative for underscores before sign in Decimal constructor in refurb (FURB157) (#21190).
  • Fix false positives on starred arguments in Ruff (RUF057) (#21256).

🔧 Affected Symbols

ruff.formatterruff.refurbruff.serverflake8_bugbear.B009flake8_bugbear.B010ruff.RUF057airflow.DAGruff.analyze