-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathLSP-ruff.sublime-settings
More file actions
44 lines (44 loc) · 2.19 KB
/
LSP-ruff.sublime-settings
File metadata and controls
44 lines (44 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
// See https://docs.astral.sh/ruff/editors/settings/
"initialization_options": {
// Configuration overrides for Ruff. See the documentation (https://docs.astral.sh/ruff/editors/settings/#configuration) for more details.
"settings.configuration": null,
// The strategy to use when resolving settings across editor and the filesystem. By default, editor configuration is prioritized over ruff.toml and pyproject.toml files.
"settings.configurationPreference": "editorFirst",
// A list of file patterns to exclude from linting and formatting. See the documentation for more details.
"settings.exclude": null,
// Whether to enable Ruff's preview mode when formatting.
"settings.format.preview": null,
// The line length to use for the linter and formatter.
"settings.lineLength": null,
// Whether to enable linting. Set to false to use Ruff exclusively as a formatter.
"settings.lint.enable": true,
// Rules to enable by default. See the documentation.
"settings.lint.select": null,
// Rules to enable in addition to those in lint.select.
"settings.lint.extendSelect": null,
// Rules to disable by default. See the documentation.
"settings.lint.ignore": null,
// Whether to enable Ruff's preview mode when linting.
"settings.lint.preview": null,
// Sets the tracing level for the extension.
"settings.logLevel": "error",
// Whether to register Ruff as capable of handling source.organizeImports actions.
"settings.organizeImports": true,
// Whether to register Ruff as capable of handling source.fixAll actions.
"settings.fixAll": true,
// Whether to display Quick Fix actions to autofix violations.
"settings.codeAction.fixViolation.enable": true,
// Whether to display Quick Fix actions to disable rules via noqa suppression comments.
"settings.codeAction.disableRuleComment.enable": true,
},
"command": [
"$server_path",
"server"
],
"schemes": [
"file", // regular files
"buffer", // in-memory buffers
],
"selector": "source.python"
}