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
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,9 @@ This server can be configured using the `workspace/didChangeConfiguration` metho
64
64
|`pylsp.plugins.pylint.enabled`|`boolean`| Enable or disable the plugin. |`false`|
65
65
|`pylsp.plugins.pylint.args`|`array` of non-unique `string` items | Arguments to pass to pylint. |`[]`|
66
66
|`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`|
67
-
|`pylsp.plugins.rope_autoimport.enabled`|`boolean`| Enable or disable autoimport. |`false`|
67
+
|`pylsp.plugins.rope_autoimport.enabled`|`boolean`| Enable or disable autoimport. If false, neither completions nor code actions are enabled. If true, the respective features can be enabled or disabled individually. |`false`|
68
+
|`pylsp.plugins.rope_autoimport.completions.enabled`|`boolean`| Enable or disable autoimport completions. |`true`|
69
+
|`pylsp.plugins.rope_autoimport.code_actions.enabled`|`boolean`| Enable or disable autoimport code actions (e.g. for quick fixes). |`true`|
68
70
|`pylsp.plugins.rope_autoimport.memory`|`boolean`| Make the autoimport database memory only. Drastically increases startup time. |`false`|
69
71
|`pylsp.plugins.rope_completion.enabled`|`boolean`| Enable or disable the plugin. |`false`|
70
72
|`pylsp.plugins.rope_completion.eager`|`boolean`| Resolve documentation and detail eagerly. |`false`|
Copy file name to clipboardExpand all lines: docs/autoimport.md
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ Requirements:
4
4
5
5
1. install `python-lsp-server[rope]`
6
6
2. set `pylsp.plugins.rope_autoimport.enabled` to `true`
7
+
3. This enables both completions and code actions. You can switch them off by setting `pylsp.plugins.rope_autoimport.completions.enabled` and/or `pylsp.plugins.rope_autoimport.code_actions.enabled` to `false`
"description": "Maximum allowed line length for the entirety of this run."
80
97
},
81
98
"pylsp.plugins.flake8.indentSize": {
82
-
"type": ["integer", "null"],
99
+
"type": [
100
+
"integer",
101
+
"null"
102
+
],
83
103
"default": null,
84
104
"description": "Set indentation spaces."
85
105
},
86
106
"pylsp.plugins.flake8.perFileIgnores": {
87
-
"type": ["array"],
107
+
"type": [
108
+
"array"
109
+
],
88
110
"default": [],
89
111
"items": {
90
112
"type": "string"
91
113
},
92
114
"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\"]`)."
93
115
},
94
116
"pylsp.plugins.flake8.select": {
95
-
"type": ["array", "null"],
117
+
"type": [
118
+
"array",
119
+
"null"
120
+
],
96
121
"default": null,
97
122
"items": {
98
123
"type": "string"
@@ -102,7 +127,9 @@
102
127
},
103
128
"pylsp.plugins.jedi.auto_import_modules": {
104
129
"type": "array",
105
-
"default": ["numpy"],
130
+
"default": [
131
+
"numpy"
132
+
],
106
133
"items": {
107
134
"type": "string"
108
135
},
@@ -117,12 +144,18 @@
117
144
"description": "Define extra paths for jedi.Script."
118
145
},
119
146
"pylsp.plugins.jedi.env_vars": {
120
-
"type": ["object", "null"],
147
+
"type": [
148
+
"object",
149
+
"null"
150
+
],
121
151
"default": null,
122
152
"description": "Define environment variables for jedi.Script and Jedi.names."
123
153
},
124
154
"pylsp.plugins.jedi.environment": {
125
-
"type": ["string", "null"],
155
+
"type": [
156
+
"string",
157
+
"null"
158
+
],
126
159
"default": null,
127
160
"description": "Define environment for jedi.Script and Jedi.names."
"description": "Modules for which labels and snippets should be cached."
171
209
},
172
210
"pylsp.plugins.jedi_definition.enabled": {
@@ -267,7 +305,10 @@
267
305
"description": "When parsing directories, only check filenames matching these patterns."
268
306
},
269
307
"pylsp.plugins.pycodestyle.select": {
270
-
"type": ["array", "null"],
308
+
"type": [
309
+
"array",
310
+
"null"
311
+
],
271
312
"default": null,
272
313
"items": {
273
314
"type": "string"
@@ -285,17 +326,26 @@
285
326
"description": "Ignore errors and warnings"
286
327
},
287
328
"pylsp.plugins.pycodestyle.hangClosing": {
288
-
"type": ["boolean", "null"],
329
+
"type": [
330
+
"boolean",
331
+
"null"
332
+
],
289
333
"default": null,
290
334
"description": "Hang closing bracket instead of matching indentation of opening bracket's line."
291
335
},
292
336
"pylsp.plugins.pycodestyle.maxLineLength": {
293
-
"type": ["integer", "null"],
337
+
"type": [
338
+
"integer",
339
+
"null"
340
+
],
294
341
"default": null,
295
342
"description": "Set maximum allowed line length."
296
343
},
297
344
"pylsp.plugins.pycodestyle.indentSize": {
298
-
"type": ["integer", "null"],
345
+
"type": [
346
+
"integer",
347
+
"null"
348
+
],
299
349
"default": null,
300
350
"description": "Set indentation spaces."
301
351
},
@@ -305,9 +355,17 @@
305
355
"description": "Enable or disable the plugin."
306
356
},
307
357
"pylsp.plugins.pydocstyle.convention": {
308
-
"type": ["string", "null"],
358
+
"type": [
359
+
"string",
360
+
"null"
361
+
],
309
362
"default": null,
310
-
"enum": ["pep257", "numpy", "google", null],
363
+
"enum": [
364
+
"pep257",
365
+
"numpy",
366
+
"google",
367
+
null
368
+
],
311
369
"description": "Choose the basic list of checked errors by specifying an existing convention."
312
370
},
313
371
"pylsp.plugins.pydocstyle.addIgnore": {
@@ -338,7 +396,10 @@
338
396
"description": "Ignore errors and warnings"
339
397
},
340
398
"pylsp.plugins.pydocstyle.select": {
341
-
"type": ["array", "null"],
399
+
"type": [
400
+
"array",
401
+
"null"
402
+
],
342
403
"default": null,
343
404
"items": {
344
405
"type": "string"
@@ -376,14 +437,27 @@
376
437
"description": "Arguments to pass to pylint."
377
438
},
378
439
"pylsp.plugins.pylint.executable": {
379
-
"type": ["string", "null"],
440
+
"type": [
441
+
"string",
442
+
"null"
443
+
],
380
444
"default": null,
381
445
"description": "Executable to run pylint with. Enabling this will run pylint on unsaved files via stdin. Can slow down workflow. Only works with python3."
382
446
},
383
447
"pylsp.plugins.rope_autoimport.enabled": {
384
448
"type": "boolean",
385
449
"default": false,
386
-
"description": "Enable or disable autoimport."
450
+
"description": "Enable or disable autoimport. If false, neither completions nor code actions are enabled. If true, the respective features can be enabled or disabled individually."
0 commit comments