-
Notifications
You must be signed in to change notification settings - Fork 4
/
sublime-package.json
189 lines (189 loc) · 6.88 KB
/
sublime-package.json
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"contributions": {
"settings": [
{
"file_patterns": [
"/LSP-ruff.sublime-settings"
],
"schema": {
"$id": "sublime://settings/LSP-ruff",
"definitions": {
"LspRuffSettings": {
"additionalProperties": false,
"properties": {
"configuration": {
"type": ["string", "null"],
"default": null,
"markdownDescription": "Path to a `ruff.toml` or `pyproject.toml` file to use for configuration. By default, Ruff will discover configuration for each project from the filesystem, mirroring the behavior of the Ruff CLI."
},
"configurationPreference": {
"type": "string",
"default": "editorFirst",
"enum": [
"editorFirst",
"filesystemFirst",
"editorOnly"
],
"enumDescriptions": [
"Editor settings take priority over configuration files present in the workspace.",
"Configuration files present in the workspace takes priority over editor settings.",
"Ignore configuration files entirely i.e., only use editor settings."
],
"markdownDescription": "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."
},
"exclude": {
"type": ["array", "null"],
"default": null,
"items": {
"type": "string"
},
"description": "A list of file patterns to exclude from linting and formatting. See the documentation for more details."
},
"format.preview": {
"type": ["null", "boolean"],
"default": null,
"description": "Whether to enable Ruff's preview mode when formatting."
},
"lint.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to enable linting. Set to false to use Ruff exclusively as a formatter."
},
"lineLength": {
"type": ["null", "integer"],
"default": null,
"description": "The line length to use for the linter and formatter."
},
"lint.select": {
"type": ["array", "null"],
"default": null,
"items": {
"type": "string"
},
"description": "Rules to enable by default. See the documentation."
},
"lint.extendSelect": {
"type": ["array", "null"],
"default": null,
"items": {
"type": "string"
},
"markdownDescription": "Rules to enable in addition to those in `lint.select`."
},
"lint.ignore": {
"type": ["array", "null"],
"default": null,
"items": {
"type": "string"
},
"description": "Rules to disable by default. See the documentation."
},
"lint.preview": {
"type": ["null", "boolean"],
"default": null,
"description": "Whether to enable Ruff's preview mode when linting."
},
"logLevel": {
"type": "string",
"default": "error",
"enum": [
"error",
"warn",
"info",
"debug",
"off"
],
"description": "Sets the tracing level for the extension."
},
"showNotification": {
"type": "string",
"default": "off",
"description": "Setting to control when a notification is shown.",
"deprecationMessage": "This option only works in VS Code."
},
"organizeImports": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to register Ruff as capable of handling `source.organizeImports` actions."
},
"fixAll": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to register Ruff as capable of handling `source.fixAll` actions."
},
"codeAction.fixViolation.enable": {
"type": "boolean",
"default": true,
"description": "Whether to display Quick Fix actions to autofix violations."
},
"codeAction.disableRuleComment.enable": {
"type": "boolean",
"default": true,
"description": "Whether to display Quick Fix actions to disable rules via noqa suppression comments."
}
},
},
"PluginConfig": {
"properties": {
"initializationOptions": {
"properties": {
"settings": {
"$ref": "sublime://settings/LSP-ruff#/definitions/LspRuffSettings",
}
}
}
}
}
},
"allOf": [
{
"$ref": "sublime://settings/LSP-plugin-base"
},
{
"$ref": "sublime://settings/LSP-ruff#/definitions/PluginConfig"
}
]
}
},
{
"file_patterns": [
"/*.sublime-project"
],
"schema": {
"properties": {
"settings": {
"properties": {
"LSP": {
"properties": {
"LSP-ruff": {
"$ref": "sublime://settings/LSP-ruff#/definitions/PluginConfig"
}
}
}
}
}
}
}
},
{
"file_patterns": [
"LSP.sublime-settings"
],
"schema": {
"properties": {
"lsp_code_actions_on_save": {
"properties": {
"source.fixAll.ruff": {
"type": "boolean"
},
"source.organizeImports.ruff": {
"type": "boolean"
}
}
}
}
}
}
]
}
}