LSP-ruff
LSP helper for ruff - an extremely fast Python linter, written in Rust.
Details
Installs
- Total 5K
- Win 2K
- Mac 2K
- Linux 2K
Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 4 | 2 | 4 | 2 | 0 | 3 | 7 | 0 | 2 | 3 | 0 | 1 | 4 | 3 | 4 | 2 | 3 | 1 | 2 | 2 | 4 | 6 | 3 | 5 | 9 | 1 | 3 | 3 | 3 | 4 | 4 | 7 | 7 | 0 | 3 | 3 | 1 | 6 | 5 | 1 | 2 | 1 | 7 | 2 | 1 |
Mac | 2 | 5 | 2 | 2 | 2 | 2 | 1 | 1 | 6 | 0 | 7 | 9 | 1 | 1 | 4 | 7 | 3 | 4 | 2 | 5 | 2 | 2 | 3 | 5 | 2 | 3 | 4 | 8 | 2 | 6 | 2 | 8 | 0 | 8 | 1 | 4 | 5 | 5 | 5 | 1 | 2 | 1 | 3 | 6 | 5 | 2 |
Linux | 1 | 4 | 1 | 3 | 3 | 4 | 4 | 3 | 4 | 10 | 4 | 5 | 2 | 1 | 5 | 5 | 4 | 7 | 4 | 2 | 7 | 5 | 8 | 2 | 3 | 3 | 6 | 3 | 6 | 6 | 3 | 7 | 9 | 5 | 0 | 2 | 5 | 5 | 3 | 8 | 2 | 3 | 2 | 5 | 1 | 6 |
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 Project
and add your settings in:{ "settings": { "LSP": { "LSP-ruff": { "initializationOptions": { "settings": { // Put your settings here } } } } } }
Code Actions on Save
The following “code actions on save” are supported:
source.fixAll
source.organizeImports
source.fixAll.ruff
source.organizeImports.ruff
You can use those with the lsp_code_actions_on_save
LSP Setting to automatically apply specific actions on saving the file.