Skip to content

Upgrading ruff 0.8 to 0.9

Breaking0.8.6 → 0.9.10Breaking3Deprecated1New50Changed82Fixed101Other21

BreakingUpgrade verdict

3 breaking changes.

  • The code formatter now follows a new style guide, so running it may reformat your code differently than before.
  • The pyupgrade rule that modernized Union and Optional is split into two rules, so Optional issues now report under UP045.
  • The rule formerly known as RUF025 is now identified as RUF037.
  • Adds a deprecation warning for ruff-lsp related settings.
4 items need code or config changes
Breaking3
Ruff now formats code according to the 2025 style guide, so formatting output may differ.
Splits UP007 into UP007 for Union and new UP045 for Optional.
UP007UP045UnionOptional
Recodes RUF025 to RUF037.
RUF025RUF037
Deprecated1
Adds a deprecation warning for ruff-lsp related settings.
ruff-lsp