Skip to content

Python#

Server#

For more information about the LSP server, check ruff.

Installation#

pip install ruff (previous pip install ruff-lsp)

Debugger: Not available#

Available configurations#

lsp-ruff-advertize-fix-all#

Type: boolean

Default: t

Whether to report ability to handle source.fixAll actions.


lsp-ruff-advertize-organize-imports#

Type: boolean

Default: t

Whether to report ability to handle source.organizeImports actions.


lsp-ruff-import-strategy#

Type: (choice (const fromEnvironment) (const useBundled))

Default: fromEnvironment

Where ruff is imported from if lsp-ruff-ruff-path is not set.


lsp-ruff-log-level#

Type: (choice (const debug) (const error) (const info) (const off) (const warn))

Default: error

Tracing level.


lsp-ruff-python-path#

Type: string

Default: python3

Path to the Python interpreter.


lsp-ruff-ruff-args#

Type: (repeat string)

Default: nil

Arguments, passed to ruff.


lsp-ruff-server-command#

Type: (repeat string)

Default: (ruff server)

Command to start ruff lsp. Previous ruff-lsp should change this to ("ruff-lsp")


lsp-ruff-show-notifications#

Type: (choice (const off) (const onError) (const onWarning) (const always))

Default: off

When notifications are shown.



Last update: September 16, 2024