# What changed in python-lsp-ruff

> 9 changes in python-lsp-ruff 1 to 2 from its official release notes, upgrade guides and advisories: 2 breaking, 5 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/pypi/python-lsp-ruff/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## python-lsp-ruff 2

### Breaking changes

- Default import sorting was removed; add format = ["I"] to the config to format imports via textDocument/formatting. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)
- Formatting requests now invoke ruff format. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)

### New APIs and options

- Support was added for Ruff's extension option to enable jupyterlab-lsp. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)
- A setting was added for enabling or disabling preview rules; preview is also supported by the formatter. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)
- Support was added for setting target-version, including for the formatter. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)
- Support was added for the Ruff unsafe-fixes feature. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)

### Behavior and default changes

- Severity customization now allows pattern matching via startswith instead of requiring full rule codes. (2.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.0.0)

### Fixes and other changes

- Replaces the deprecated E999 error. (2.3.1) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v2.3.1)

## python-lsp-ruff 1

### New APIs and options

- The first major release of the Ruff integration into pylsp. (1.0.0) — [release notes](https://github.com/python-lsp/python-lsp-ruff/releases/tag/v1.0.0)
