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." } }, },