0.15.10
📦 ruffView on GitHub →
✨ 4 features🐛 5 fixes🔧 6 symbols
Summary
This release focuses on bug fixes related to f-string parsing across Python versions and introduces several preview features for linter rule improvements. It also adds support for custom file extensions in the LSP server.
✨ New Features
- [`flake8-logging`] Allow closures in except handlers (`LOG004`) in preview.
- [`flake8-self`] Make `SLF` diagnostics robust to non-self-named variables in preview.
- [`flake8-simplify`] Make the fix for `collapsible-if` safe in `preview` (`SIM102`).
- Add support for custom file extensions in the Language Server Protocol (LSP) implementation.
🐛 Bug Fixes
- Avoid emitting multi-line f-string elements before Python 3.12.
- Avoid syntax error from `E502` fixes in f-strings and t-strings.
- Strip form feeds from indent passed to `dedent_to`.
- [`pyupgrade`] Fix panic caused by handling of octals (`UP012`).
- Reject multi-line f-string elements before Python 3.12.