astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
945 stars 45 forks source link

Lint:Ignore doesn't work #494

Closed Filyus closed 2 weeks ago

Filyus commented 3 weeks ago

VS Code Settings:

{
  "ruff.lint.ignore": [
    "E402"
  ]
}

The ignore parameter is not added to \extensions\charliermarsh.ruff-2024.26.0-win32-x64\pyproject.toml:

[tool.ruff.lint]
select = ["E", "F", "W", "Q", "UP", "I", "N"]

Ruff v2024.26.0

VS Code:

Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:33:54.889Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

With a native server enabled everything is fine.

charliermarsh commented 3 weeks ago

ruff.lint.ignore is only supported for native server.

charliermarsh commented 3 weeks ago

See: https://github.com/astral-sh/ruff-vscode?tab=readme-ov-file#settings ("The following settings are exclusive to the Rust-based language server...").