Change8

0.12.5

📦 ruffView on GitHub →
2 features🐛 5 fixes

Summary

Ruff 0.12.5 introduces autofixes for several pathlib-related lint rules and adds support for byte strings, while fixing parser panics, rule handling bugs, and false positives.

✨ New Features

  • Add autofix for PTH101, PTH104, PTH105, PTH121 in the flake8-use-pathlib plugin.
  • Support byte strings via the new RUF055 rule.

🐛 Bug Fixes

  • Fixed an `unreachable` panic in the parser.
  • Skipped fix for flake8-pyi when all Union members are `None` (PYI016).
  • Parenthesized generator expressions for the perflint PERF401 rule.
  • Handled empty comments after line continuation in pylint (PLR2044).
  • Fixed false positives for N802 in pep8-naming when handling `CGIHTTPRequestHandler` and `SimpleHTTPRequestHandler`.