Change8

0.12.10

📦 ruffView on GitHub →
4 features🐛 3 fixes🔧 14 symbols

Summary

Ruff 0.12.10 introduces preview fixes for flake8‑simplify and flake8‑use‑pathlib, improves rule behavior for E731 and F811, and includes several bug fixes across isort and pyupgrade.

✨ New Features

  • Add fix for `maxsplit` without separator in flake8-simplify (SIM905).
  • Add fixes for `PTH102` and `PTH103` in flake8-use-pathlib.
  • Make `E731` fix unsafe instead of display‑only for class assignments in pycodestyle.
  • Add secondary annotation showing previous definition for `F811` in pyflakes.

🐛 Bug Fixes

  • Handle multiple continuation lines after module docstring in isort (I002).
  • Avoid reporting `__future__` features as unnecessary when they are used in pyupgrade (UP010).
  • Handle nested `Optional`s in pyupgrade (UP045).

🔧 Affected Symbols

flake8-simplifySIM905flake8-use-pathlibPTH102PTH103isortI002pyupgradeUP010UP045pycodestyleE731pyflakesF811