
Security News
Node.js Considers Public Workflow for Security Reports Amid AI-Driven Surge
Node.js is debating whether AI-driven security report volume warrants moving more vulnerability reports into public workflows.
@yaegassy/coc-ruff
Advanced tools
ruff-lsp extension for coc.nvim.
CocInstall:
:CocInstall @yaegassy/coc-ruff
scoped packages
e.g. vim-plug:
Plug 'yaegassy/coc-ruff', {'do': 'yarn install --frozen-lockfile'}
The ruff command used by ruff-lsp uses the ruff command installed with the ruff-lsp dependency.
To use the ruff command installed in the virtual environment of a project created by venv, poetry, etc., ruff.path must be set to an absolute path.
coc-ruff adds the feature to automatically detect ruff commands in the execution environment and use them in ruff-lsp.
If you do not need this feature, set ruff.useDetectRuffCommand to false.
coc-settings.json:
{
"ruff.useDetectRuffCommand": false
}
To use the new Rust-based language server (ruff server), you'll need to enable the ruff.nativeServer setting in the coc-settings.json:
{
"ruff.nativeServer": true
}
In coc-ruff, the ruff binary is detected from the runtime environment (PATH) by default to start the native server. If you want to specify a custom ruff binary path, please set ruff.nativeBinaryPath.
{
"ruff.nativeBinaryPath": "/path/to/ruff"
}
The black equivalent formatting feature has been added to ruff. This feature is enabled by default in ruff-lsp "v0.0.42" and later.
If you want to disable this feature, set the ruff.disableDocumentFormatting setting to true.
coc-settings.json:
{
"ruff.disableDocumentFormatting": true
}
If you are using ruff-lsp "v0.4.1" or earlier and want to use this feature, please follow these steps.
ruff.enableExperimentalFormatter to true. coc-ruff, please disable the formatting feature of those coc-extensions.
coc-pyright:
python.formatting.provider to none.coc-settings.json:
{
"ruff.enableExperimentalFormatter": true,
"python.formatting.provider": "none"
}
Auto-fixing can be executed via the ruff.executeAutofix command or CodeAction.
Set ruff.autoFixOnSave setting to true if you also want auto-fixing to be performed when the file is saved.
coc-settings.json:
{
"ruff.autoFixOnSave": true
}
coc-ruff detects and starts ruff-lsp in the following priority order.
ruff.serverPath (If there is a setting)coc-ruff allows you to create an extension-only "venv" and install ruff-lsp.
When using coc-ruff for the first time, if ruff-lsp is not present in the runtime environment, you will be prompted to do a built-in install.
To use the built-in installation feature, execute the following command.
:CocCommand ruff.builtin.installServer
ruff.enable: Enable coc-ruff extension, default: trueruff.nativeServer: Use the integrated Rust-based language server, available now in Beta, default: falseruff.nativeBinaryPath: Custom path for the ruff binary when using the native server. If no value is set, the ruff command will be detected from the runtime environment, default: ""ruff.disableDocumentFormatting: Disable document formatting only, default: falseruff.disableHover: Disable hover only, default: falseruff.useDetectRuffCommand: Automatically detects the ruff command in the execution environment and sets ruff.path, default: trueruff.autoFixOnSave: Turns auto fix on save on or off, default: falseruff.client.codeAction.showDocumantaion.enable: Whether to display the code action for open the Ruff rule documentation web page included in the diagnostic information, default: falseruff.serverPath: Custom path to the ruff-lsp command. If not set, the ruff-lsp command found in the current Python environment or in the venv environment created for the extension will be used, default: ""ruff.builtin.pythonPath: Python 3.x path (Absolute path) to be used for built-in install, default: ""ruff.trace.server: Traces the communication between coc.nvim and the ruff-lsp, default: "off"Other settings have the same configuration as ruff-vscode.
ruff.executeAutofix: Fix all auto-fixable problemsruff.executeFormat: Format documentruff.executeOrganizeImports: Format importsruff.debugInformation: Print debug information (native server only)ruff.showLogs: Show logsruff.restart: Restart Serverruff.builtin.installServer: Install ruff-lsp
~/.config/coc/extensions/@yaegassy/coc-ruff-data/ruff-lsp/venv/bin/ruff-lsp~\AppData\Local\coc\extensions\@yaegassy\coc-ruff-data\ruff-lsp\venv\Scripts\ruff-lsp.exeMIT
This extension is built with create-coc-extension
FAQs
ruff server extension for coc.nvim
The npm package @yaegassy/coc-ruff receives a total of 11 weekly downloads. As such, @yaegassy/coc-ruff popularity was classified as not popular.
We found that @yaegassy/coc-ruff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Node.js is debating whether AI-driven security report volume warrants moving more vulnerability reports into public workflows.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.