From c7704c704032fef35b1e2c7e4a235855478cbdf8 Mon Sep 17 00:00:00 2001 From: Lucas Alber Date: Fri, 2 Feb 2024 15:02:49 +0100 Subject: [PATCH] Update settings schema for 0.0.51 --- LSP-ruff.sublime-settings | 4 ++++ sublime-package.json | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/LSP-ruff.sublime-settings b/LSP-ruff.sublime-settings index 6e33a22..af9cb72 100644 --- a/LSP-ruff.sublime-settings +++ b/LSP-ruff.sublime-settings @@ -9,6 +9,8 @@ "lint.args": [], // Run Ruff on every keystroke (onType) or on save (onSave). "lint.run": "onType", + // Whether to enable linting. Set to false to use Ruff exclusively as a formatter. + "lint.enable": true, // Additional command-line arguments to pass to `ruff format`. "format.args": [], // Sets the tracing level for the extension. @@ -27,6 +29,8 @@ "codeAction.fixViolation.enable": true, // Whether to display Quick Fix actions to disable rules via noqa suppression comments. "codeAction.disableRuleComment.enable": true, + // Whether to ignore files that are inferred to be part of the Python standard library. + "ignoreStandardLibrary": true, }, }, "command": [ diff --git a/sublime-package.json b/sublime-package.json index 81bf77c..bc8bcb4 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -16,6 +16,11 @@ "default": [], "markdownDescription": "Custom arguments passed to ruff. See [ruff documentation](https://github.com/charliermarsh/ruff/blob/main/README.md#configuration)." }, + "lint.enable": { + "type": "boolean", + "default": true, + "markdownDescription": "Whether to enable linting. Set to false to use Ruff exclusively as a formatter." + }, "lint.run": { "type": "string", "default": "onType", @@ -76,6 +81,11 @@ "type": "boolean", "default": true, "description": "Whether to display Quick Fix actions to disable rules via noqa suppression comments." + }, + "ignoreStandardLibrary": { + "type": "boolean", + "default": true, + "description": "Whether to ignore files that are inferred to be part of the Python standard library." } }, },