Change8

0.12.3

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

Summary

Ruff 0.12.3 adds new autofixes for many pathlib rules, supports non-context-manager calls in B017, and includes several bug fixes and documentation improvements.

✨ New Features

  • flake8-bugbear: Support non-context-manager calls in B017.
  • flake8-use-pathlib: Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120.
  • flake8-use-pathlib: Add autofixes for PTH203, PTH204, PTH205.

🐛 Bug Fixes

  • flake8-return: Fixed false-positive for variables used inside nested functions in RET504.
  • General: Treated form feed as valid whitespace before a line continuation.
  • flake8-type-checking: Fixed syntax error introduced by fix TC008.
  • pyupgrade: Keyword arguments in super now suppress the UP008 fix.

🔧 Affected Symbols

B017PTH100PTH106PTH107PTH108PTH110PTH111PTH112PTH113PTH114PTH115PTH117PTH119PTH120PTH203PTH204PTH205RET504TC008UP008