ruff-lsp

0.0.62 · deprecated · verified Thu Apr 16

ruff-lsp is a Language Server Protocol (LSP) implementation for Ruff, an extremely fast Python linter and code formatter. It enables Ruff to be integrated with any editor that supports the LSP, providing features like surfacing diagnostics and offering code actions to fix them. The library is currently at version 0.0.62, with releases often coinciding with updates to the underlying Ruff tool. However, ruff-lsp is officially deprecated in favor of Ruff's native Rust-based language server, `ruff server`.

Common errors

Warnings

Install

Quickstart

ruff-lsp functions as a Language Server, meant to be launched and managed by an editor or IDE supporting the Language Server Protocol. It is not designed for direct programmatic import and use within Python scripts. The command above starts the LSP server process, which editors connect to.

# ruff-lsp is typically launched by an LSP-capable editor.
# To run it manually (e.g., for testing or debugging):
ruff-lsp

view raw JSON →