You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`pylsp.configurationSources`|`array`of unique `string` items | List of configuration sources to use. |`["pycodestyle"]`|
6
+
|`pylsp.configurationSources`|`array` of unique `string` (one of: `pycodestyle`, `pyflakes`) items | List of configuration sources to use. |`["pycodestyle"]`|
7
7
|`pylsp.plugins.flake8.config`|`string`| Path to the config file that will be the authoritative config source. |`null`|
8
8
|`pylsp.plugins.flake8.enabled`|`boolean`| Enable or disable the plugin. |`false`|
9
-
|`pylsp.plugins.flake8.exclude`|`array`| List of files or directories to exclude. |`null`|
9
+
|`pylsp.plugins.flake8.exclude`|`array`of `string` items | List of files or directories to exclude. |`[]`|
10
10
|`pylsp.plugins.flake8.executable`|`string`| Path to the flake8 executable. |`"flake8"`|
11
11
|`pylsp.plugins.flake8.filename`|`string`| Only check for filenames matching the patterns in this list. |`null`|
12
12
|`pylsp.plugins.flake8.hangClosing`|`boolean`| Hang closing bracket instead of matching indentation of opening bracket's line. |`null`|
13
-
|`pylsp.plugins.flake8.ignore`|`array`| List of errors and warnings to ignore (or skip). |`null`|
13
+
|`pylsp.plugins.flake8.ignore`|`array`of `string` items | List of errors and warnings to ignore (or skip). |`[]`|
14
14
|`pylsp.plugins.flake8.maxLineLength`|`integer`| Maximum allowed line length for the entirety of this run. |`null`|
15
15
|`pylsp.plugins.flake8.indentSize`|`integer`| Set indentation spaces. |`null`|
16
-
|`pylsp.plugins.flake8.perFileIgnores`|`array`| A pairing of filenames and violation codes that defines which violations to ignore in a particular file, for example: `["file_path.py:W305,W304"]`). |`null`|
17
-
|`pylsp.plugins.flake8.select`|`array`| List of errors and warnings to enable. |`null`|
18
-
|`pylsp.plugins.jedi.extra_paths`|`array`| Define extra paths for jedi.Script. |`[]`|
16
+
|`pylsp.plugins.flake8.perFileIgnores`|`array`of `string` items | A pairing of filenames and violation codes that defines which violations to ignore in a particular file, for example: `["file_path.py:W305,W304"]`). |`[]`|
17
+
|`pylsp.plugins.flake8.select`|`array`of unique `string` items| List of errors and warnings to enable. |`null`|
18
+
|`pylsp.plugins.jedi.extra_paths`|`array`of `string` items| Define extra paths for jedi.Script. |`[]`|
19
19
|`pylsp.plugins.jedi.env_vars`|`object`| Define environment variables for jedi.Script and Jedi.names. |`null`|
20
20
|`pylsp.plugins.jedi.environment`|`string`| Define environment for jedi.Script and Jedi.names. |`null`|
21
21
|`pylsp.plugins.jedi_completion.enabled`|`boolean`| Enable or disable the plugin. |`true`|
@@ -24,7 +24,7 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
24
24
|`pylsp.plugins.jedi_completion.fuzzy`|`boolean`| Enable fuzzy when requesting autocomplete. |`false`|
25
25
|`pylsp.plugins.jedi_completion.eager`|`boolean`| Resolve documentation and detail eagerly. |`false`|
26
26
|`pylsp.plugins.jedi_completion.resolve_at_most`|`number`| How many labels and snippets (at most) should be resolved? |`25`|
27
-
|`pylsp.plugins.jedi_completion.cache_for`|`array` of `string` items | Modules for which labels and snippets should be cached. |`["pandas", "numpy", "tensorflow", "matplotlib"]`|
27
+
|`pylsp.plugins.jedi_completion.cache_for`|`array`of`string` items | Modules for which labels and snippets should be cached. |`["pandas", "numpy", "tensorflow", "matplotlib"]`|
28
28
|`pylsp.plugins.jedi_definition.enabled`|`boolean`| Enable or disable the plugin. |`true`|
29
29
|`pylsp.plugins.jedi_definition.follow_imports`|`boolean`| The goto call will follow imports. |`true`|
30
30
|`pylsp.plugins.jedi_definition.follow_builtin_imports`|`boolean`| If follow_imports is True will decide if it follow builtin imports. |`true`|
@@ -37,31 +37,31 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
37
37
|`pylsp.plugins.mccabe.enabled`|`boolean`| Enable or disable the plugin. |`true`|
38
38
|`pylsp.plugins.mccabe.threshold`|`number`| The minimum threshold that triggers warnings about cyclomatic complexity. |`15`|
39
39
|`pylsp.plugins.preload.enabled`|`boolean`| Enable or disable the plugin. |`true`|
40
-
|`pylsp.plugins.preload.modules`|`array`of unique `string` items | List of modules to import on startup |`null`|
40
+
|`pylsp.plugins.preload.modules`|`array` of unique `string` items | List of modules to import on startup |`[]`|
41
41
|`pylsp.plugins.pycodestyle.enabled`|`boolean`| Enable or disable the plugin. |`true`|
42
-
|`pylsp.plugins.pycodestyle.exclude`|`array`of unique `string` items | Exclude files or directories which match these patterns. |`null`|
43
-
|`pylsp.plugins.pycodestyle.filename`|`array`of unique `string` items | When parsing directories, only check filenames matching these patterns. |`null`|
44
-
|`pylsp.plugins.pycodestyle.select`|`array`of unique `string` items | Select errors and warnings |`null`|
45
-
|`pylsp.plugins.pycodestyle.ignore`|`array`of unique `string` items | Ignore errors and warnings |`null`|
42
+
|`pylsp.plugins.pycodestyle.exclude`|`array` of unique `string` items | Exclude files or directories which match these patterns. |`[]`|
43
+
|`pylsp.plugins.pycodestyle.filename`|`array` of unique `string` items | When parsing directories, only check filenames matching these patterns. |`[]`|
44
+
|`pylsp.plugins.pycodestyle.select`|`array` of unique `string` items | Select errors and warnings |`[]`|
45
+
|`pylsp.plugins.pycodestyle.ignore`|`array` of unique `string` items | Ignore errors and warnings |`[]`|
46
46
|`pylsp.plugins.pycodestyle.hangClosing`|`boolean`| Hang closing bracket instead of matching indentation of opening bracket's line. |`null`|
47
47
|`pylsp.plugins.pycodestyle.maxLineLength`|`number`| Set maximum allowed line length. |`null`|
48
48
|`pylsp.plugins.pycodestyle.indentSize`|`integer`| Set indentation spaces. |`null`|
49
49
|`pylsp.plugins.pydocstyle.enabled`|`boolean`| Enable or disable the plugin. |`false`|
50
-
|`pylsp.plugins.pydocstyle.convention`|`string`| Choose the basic list of checked errors by specifying an existing convention. |`null`|
51
-
|`pylsp.plugins.pydocstyle.addIgnore`|`array`of unique `string` items | Ignore errors and warnings in addition to the specified convention. |`null`|
52
-
|`pylsp.plugins.pydocstyle.addSelect`|`array`of unique `string` items | Select errors and warnings in addition to the specified convention. |`null`|
53
-
|`pylsp.plugins.pydocstyle.ignore`|`array`of unique `string` items | Ignore errors and warnings |`null`|
54
-
|`pylsp.plugins.pydocstyle.select`|`array`of unique `string` items | Select errors and warnings |`null`|
50
+
|`pylsp.plugins.pydocstyle.convention`|`string`(one of: `pep257`, `numpy`, `None`) | Choose the basic list of checked errors by specifying an existing convention. |`null`|
51
+
|`pylsp.plugins.pydocstyle.addIgnore`|`array` of unique `string` items | Ignore errors and warnings in addition to the specified convention. |`[]`|
52
+
|`pylsp.plugins.pydocstyle.addSelect`|`array` of unique `string` items | Select errors and warnings in addition to the specified convention. |`[]`|
53
+
|`pylsp.plugins.pydocstyle.ignore`|`array` of unique `string` items | Ignore errors and warnings |`[]`|
54
+
|`pylsp.plugins.pydocstyle.select`|`array` of unique `string` items | Select errors and warnings |`[]`|
55
55
|`pylsp.plugins.pydocstyle.match`|`string`| Check only files that exactly match the given regular expression; default is to match files that don't start with 'test_' but end with '.py'. |`"(?!test_).*\\.py"`|
56
56
|`pylsp.plugins.pydocstyle.matchDir`|`string`| Search only dirs that exactly match the given regular expression; default is to match dirs which do not begin with a dot. |`"[^\\.].*"`|
57
57
|`pylsp.plugins.pyflakes.enabled`|`boolean`| Enable or disable the plugin. |`true`|
58
58
|`pylsp.plugins.pylint.enabled`|`boolean`| Enable or disable the plugin. |`false`|
59
-
|`pylsp.plugins.pylint.args`|`array`of non-unique `string` items | Arguments to pass to pylint. |`null`|
59
+
|`pylsp.plugins.pylint.args`|`array` of non-unique `string` items | Arguments to pass to pylint. |`[]`|
60
60
|`pylsp.plugins.pylint.executable`|`string`| Executable to run pylint with. Enabling this will run pylint on unsaved files via stdin. Can slow down workflow. Only works with python3. |`null`|
61
61
|`pylsp.plugins.rope_completion.enabled`|`boolean`| Enable or disable the plugin. |`false`|
62
62
|`pylsp.plugins.rope_completion.eager`|`boolean`| Resolve documentation and detail eagerly. |`false`|
63
63
|`pylsp.plugins.yapf.enabled`|`boolean`| Enable or disable the plugin. |`true`|
64
64
|`pylsp.rope.extensionModules`|`string`| Builtin and c-extension modules that are allowed to be imported and inspected by rope. |`null`|
65
-
|`pylsp.rope.ropeFolder`|`array`of unique `string` items | The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all. |`null`|
65
+
|`pylsp.rope.ropeFolder`|`array` of unique `string` items | The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all. |`null`|
66
66
67
67
This documentation was generated from `pylsp/config/schema.json`. Please do not edit this file directly.
Copy file name to clipboardExpand all lines: pylsp/config/schema.json
+46-33Lines changed: 46 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
"uniqueItems": true
16
16
},
17
17
"pylsp.plugins.flake8.config": {
18
-
"type": "string",
18
+
"type": ["string", "null"],
19
19
"default": null,
20
20
"description": "Path to the config file that will be the authoritative config source."
21
21
},
@@ -26,7 +26,10 @@
26
26
},
27
27
"pylsp.plugins.flake8.exclude": {
28
28
"type": "array",
29
-
"default": null,
29
+
"default": [],
30
+
"items": {
31
+
"type": "string"
32
+
},
30
33
"description": "List of files or directories to exclude."
31
34
},
32
35
"pylsp.plugins.flake8.executable": {
@@ -35,52 +38,65 @@
35
38
"description": "Path to the flake8 executable."
36
39
},
37
40
"pylsp.plugins.flake8.filename": {
38
-
"type": "string",
41
+
"type": ["string", "null"],
39
42
"default": null,
40
43
"description": "Only check for filenames matching the patterns in this list."
41
44
},
42
45
"pylsp.plugins.flake8.hangClosing": {
43
-
"type": "boolean",
46
+
"type": ["boolean", "null"],
44
47
"default": null,
45
48
"description": "Hang closing bracket instead of matching indentation of opening bracket's line."
46
49
},
47
50
"pylsp.plugins.flake8.ignore": {
48
51
"type": "array",
49
-
"default": null,
52
+
"default": [],
53
+
"items": {
54
+
"type": "string"
55
+
},
50
56
"description": "List of errors and warnings to ignore (or skip)."
51
57
},
52
58
"pylsp.plugins.flake8.maxLineLength": {
53
-
"type": "integer",
59
+
"type": ["integer", "null"],
54
60
"default": null,
55
61
"description": "Maximum allowed line length for the entirety of this run."
56
62
},
57
63
"pylsp.plugins.flake8.indentSize": {
58
-
"type": "integer",
64
+
"type": ["integer", "null"],
59
65
"default": null,
60
66
"description": "Set indentation spaces."
61
67
},
62
68
"pylsp.plugins.flake8.perFileIgnores": {
63
-
"type": "array",
64
-
"default": null,
69
+
"type": ["array"],
70
+
"default": [],
71
+
"items": {
72
+
"type": "string"
73
+
},
65
74
"description": "A pairing of filenames and violation codes that defines which violations to ignore in a particular file, for example: `[\"file_path.py:W305,W304\"]`)."
66
75
},
67
76
"pylsp.plugins.flake8.select": {
68
-
"type": "array",
77
+
"type": ["array", "null"],
69
78
"default": null,
79
+
"items": {
80
+
"type": "string"
81
+
},
82
+
"uniqueItems": true,
70
83
"description": "List of errors and warnings to enable."
71
84
},
72
85
"pylsp.plugins.jedi.extra_paths": {
73
86
"type": "array",
74
87
"default": [],
88
+
"items": {
89
+
"type": "string"
90
+
},
75
91
"description": "Define extra paths for jedi.Script."
76
92
},
77
93
"pylsp.plugins.jedi.env_vars": {
78
-
"type": "object",
94
+
"type": ["object", "null"],
79
95
"default": null,
80
96
"description": "Define environment variables for jedi.Script and Jedi.names."
81
97
},
82
98
"pylsp.plugins.jedi.environment": {
83
-
"type": "string",
99
+
"type": ["string", "null"],
84
100
"default": null,
85
101
"description": "Define environment for jedi.Script and Jedi.names."
86
102
},
@@ -184,7 +200,7 @@
184
200
},
185
201
"pylsp.plugins.preload.modules": {
186
202
"type": "array",
187
-
"default": null,
203
+
"default": [],
188
204
"items": {
189
205
"type": "string"
190
206
},
@@ -198,7 +214,7 @@
198
214
},
199
215
"pylsp.plugins.pycodestyle.exclude": {
200
216
"type": "array",
201
-
"default": null,
217
+
"default": [],
202
218
"items": {
203
219
"type": "string"
204
220
},
@@ -207,7 +223,7 @@
207
223
},
208
224
"pylsp.plugins.pycodestyle.filename": {
209
225
"type": "array",
210
-
"default": null,
226
+
"default": [],
211
227
"items": {
212
228
"type": "string"
213
229
},
@@ -216,7 +232,7 @@
216
232
},
217
233
"pylsp.plugins.pycodestyle.select": {
218
234
"type": "array",
219
-
"default": null,
235
+
"default": [],
220
236
"items": {
221
237
"type": "string"
222
238
},
@@ -225,25 +241,25 @@
225
241
},
226
242
"pylsp.plugins.pycodestyle.ignore": {
227
243
"type": "array",
228
-
"default": null,
244
+
"default": [],
229
245
"items": {
230
246
"type": "string"
231
247
},
232
248
"uniqueItems": true,
233
249
"description": "Ignore errors and warnings"
234
250
},
235
251
"pylsp.plugins.pycodestyle.hangClosing": {
236
-
"type": "boolean",
252
+
"type": ["boolean", "null"],
237
253
"default": null,
238
254
"description": "Hang closing bracket instead of matching indentation of opening bracket's line."
239
255
},
240
256
"pylsp.plugins.pycodestyle.maxLineLength": {
241
-
"type": "number",
257
+
"type": ["number", "null"],
242
258
"default": null,
243
259
"description": "Set maximum allowed line length."
244
260
},
245
261
"pylsp.plugins.pycodestyle.indentSize": {
246
-
"type": "integer",
262
+
"type": ["integer", "null"],
247
263
"default": null,
248
264
"description": "Set indentation spaces."
249
265
},
@@ -253,17 +269,14 @@
253
269
"description": "Enable or disable the plugin."
254
270
},
255
271
"pylsp.plugins.pydocstyle.convention": {
256
-
"type": "string",
272
+
"type": ["string", "null"],
257
273
"default": null,
258
-
"enum": [
259
-
"pep257",
260
-
"numpy"
261
-
],
274
+
"enum": ["pep257", "numpy", null],
262
275
"description": "Choose the basic list of checked errors by specifying an existing convention."
263
276
},
264
277
"pylsp.plugins.pydocstyle.addIgnore": {
265
278
"type": "array",
266
-
"default": null,
279
+
"default": [],
267
280
"items": {
268
281
"type": "string"
269
282
},
@@ -272,7 +285,7 @@
272
285
},
273
286
"pylsp.plugins.pydocstyle.addSelect": {
274
287
"type": "array",
275
-
"default": null,
288
+
"default": [],
276
289
"items": {
277
290
"type": "string"
278
291
},
@@ -281,7 +294,7 @@
281
294
},
282
295
"pylsp.plugins.pydocstyle.ignore": {
283
296
"type": "array",
284
-
"default": null,
297
+
"default": [],
285
298
"items": {
286
299
"type": "string"
287
300
},
@@ -290,7 +303,7 @@
290
303
},
291
304
"pylsp.plugins.pydocstyle.select": {
292
305
"type": "array",
293
-
"default": null,
306
+
"default": [],
294
307
"items": {
295
308
"type": "string"
296
309
},
@@ -319,15 +332,15 @@
319
332
},
320
333
"pylsp.plugins.pylint.args": {
321
334
"type": "array",
322
-
"default": null,
335
+
"default": [],
323
336
"items": {
324
337
"type": "string"
325
338
},
326
339
"uniqueItems": false,
327
340
"description": "Arguments to pass to pylint."
328
341
},
329
342
"pylsp.plugins.pylint.executable": {
330
-
"type": "string",
343
+
"type": ["string", "null"],
331
344
"default": null,
332
345
"description": "Executable to run pylint with. Enabling this will run pylint on unsaved files via stdin. Can slow down workflow. Only works with python3."
333
346
},
@@ -347,12 +360,12 @@
347
360
"description": "Enable or disable the plugin."
348
361
},
349
362
"pylsp.rope.extensionModules": {
350
-
"type": "string",
363
+
"type": ["null", "string"],
351
364
"default": null,
352
365
"description": "Builtin and c-extension modules that are allowed to be imported and inspected by rope."
0 commit comments