0.15.1
📦 ruffView on GitHub →
✨ 11 features🐛 13 fixes🔧 6 symbols
Summary
This release introduces significant improvements to Markdown formatting support, expands preview features for Airflow compatibility, and fixes numerous bugs across various integrated linters. Notably, new rules like `RUF069` for float equality comparison were added.
Migration Steps
- If using `format --check`, note that diagnostic output is suppressed when using the `--silent` flag.
✨ New Features
- Added ruff rules to catch deprecated Airflow imports for Airflow 3.1 ([airflow] RUF008).
- Added flagging for third positional parameter not named `ti_key` in `BaseOperatorLink.get_link` ([airflow]).
- Added detection of non-existent mock methods in standalone expressions ([pygrep-hooks] PGH005).
- Improved diagnostic range for tuples in `pyupgrade` ([UP024]).
- Added rule `RUF008` to detect mutable defaults in `field` calls.
- Added rule `RUF069` to ignore std `cmath.inf`.
- Added new rule `float-equality-comparison` (`RUF069`).
- Added support for Markdown formatting in LSP.
- Added support for Quarto Markdown language markers.
- Added support for formatting `pycon` Markdown code blocks.
- Added logic to use extension mapping to select Markdown code block language.
🐛 Bug Fixes
- Fixed false negatives for plural argument of `ngettext` ([flake8-gettext]).
- Fixed infinite loop in preview fix for `unused-import` ([pyflakes] F401).
- Avoided false positive for undefined variables in `FAST001`.
- Avoided introducing syntax errors for `FAST003` autofix.
- Avoided suggesting `InitVar` for `__post_init__` that references PEP 695 type parameters.
- Deduplicated type variables in generic functions.
- Fixed exception handler parenthesis removal for Python 3.14+.
- Fixed f-string middle panic when parsing t-strings.
- Wrapped `RUF020` target for multiline fixes.
- Wrapped `UP007` target for multiline fixes.
- Fixed missing diagnostics for last range suppression in file.
- Fixed syntax error on string with newline escape and comment in `pyupgrade` ([UP037]).
- Fixed syntax error when unpacking nested tuples in `parametrize` fixes for [PT006].