0.16.3
📦 ruffView on GitHub →
✨ 2 features🐛 6 fixes🔧 4 symbols
Summary
This release includes several bug fixes for pylint, flake8-bandit, and pyupgrade rules. It also introduces performance improvements through PGO and a reduction in Expr size, along with a new rule for replacing `while 1` with `while True`.
Migration Steps
- Make `np.chararray` autofix backwards-compatible (`NPY201`).
✨ New Features
- Add rule to replace `while 1` with `while True` (`UP048`).
- Suggest `asyncio.TaskGroup` (`RUF006`).
🐛 Bug Fixes
- Fix false negatives on negative numbers (`PLR6104`).
- Check keyword arguments for `flake8-bandit` rules (`S602`, `S603`, `S607`, `S609`).
- Allow `continue` in `finally` on Python 3.8.
- Fix `PLE1307` false positive with bools.
- Fix false positives and negatives with `%b` format character (`PLE1300`, `PLE1307`).
- Improve handling of concatenated strings (`PLE1300`).