unstale

pypi / python-lsp-ruff

python-lsp-ruff

What changed in python-lsp-ruff 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

2 breaking5 new APIs and options1 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

python-lsp-ruff 28 changes

Breaking changes 2

  • Default import sorting was removed; add format = ["I"] to the config to format imports via textDocument/formatting.

    2.0.0release notes

  • Formatting requests now invoke ruff format.

    2.0.0release notes

New APIs and options 4

  • Support was added for Ruff's extension option to enable jupyterlab-lsp.

    2.0.0release notes

  • A setting was added for enabling or disabling preview rules; preview is also supported by the formatter.

    2.0.0release notes

  • Support was added for setting target-version, including for the formatter.

    2.0.0release notes

  • Support was added for the Ruff unsafe-fixes feature.

    2.0.0release notes

Behavior and default changes 1

  • Severity customization now allows pattern matching via startswith instead of requiring full rule codes.

    2.0.0release notes

Fixes and other changes 1

python-lsp-ruff 11 changes

New APIs and options 1

  • The first major release of the Ruff integration into pylsp.

    1.0.0release notes