LSP-ruff
LSP helper for ruff - an extremely fast Python linter, written in Rust.
Details
Installs
- Total 8K
- Win 3K
- Mac 3K
- Linux 3K
| May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 7 | 2 | 11 | 11 | 8 | 0 | 2 | 6 | 4 | 6 | 5 | 5 | 4 | 2 | 4 | 1 | 5 | 5 | 2 | 8 | 4 | 1 | 5 | 3 | 1 | 6 | 3 | 5 | 1 | 2 | 3 | 4 | 5 | 6 | 9 | 3 | 8 | 4 | 3 | 3 | 4 | 6 | 7 | 2 | 2 |
| Mac | 4 | 9 | 2 | 6 | 7 | 3 | 4 | 7 | 3 | 3 | 4 | 2 | 5 | 3 | 3 | 8 | 5 | 2 | 2 | 5 | 9 | 3 | 4 | 3 | 2 | 9 | 4 | 4 | 3 | 2 | 5 | 3 | 1 | 3 | 7 | 2 | 1 | 1 | 3 | 4 | 3 | 4 | 5 | 2 | 0 | 1 |
| Linux | 2 | 3 | 5 | 11 | 5 | 3 | 3 | 6 | 4 | 5 | 8 | 3 | 4 | 4 | 2 | 11 | 5 | 7 | 5 | 5 | 9 | 7 | 5 | 3 | 7 | 7 | 10 | 2 | 8 | 1 | 5 | 8 | 4 | 4 | 9 | 7 | 4 | 2 | 2 | 5 | 1 | 4 | 10 | 3 | 4 | 2 |
Readme
- Source
- raw.githubusercontent.com
LSP-ruff
This is a helper package that automatically installs and updates ruff for you. Ruff is an extremely fast Python linter and code transformation tool, written in Rust.
Requirements
To use this package, you must have:
- An executable
python(on Windows) orpython3(on Linux/macOS) - The LSP package
- For Ubuntu and Debian users, you must also install python3-venv with apt
- It's recommended to also install the LSP-json package which will provide auto-completion and validation for this package's settings.
Configuration
There are multiple ways to configure the package and the language server.
- Global configuration:
Preferences > Package Settings > LSP > Servers > LSP-ruff Project-specific configuration: From the Command Palette run
Project: Edit Projectand add your settings in:{ "settings": { "LSP": { "LSP-ruff": { "initialization_options": { // Put your settings here } } } } }
Code Actions on Save
The following “code actions on save” are supported:
source.fixAllsource.organizeImportssource.fixAll.ruffsource.organizeImports.ruff
You can use those with the lsp_code_actions_on_save LSP Setting to automatically apply specific actions on saving the file.