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
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Python Language Server Configuration
2
-
This server can be configured using `workspace/didChangeConfiguration` method. Each configuration option is described below:
2
+
This server can be configured using the `workspace/didChangeConfiguration` method. Each configuration option is described below. Note, a value of `null` means that we do not set a value and thus use the plugin's default value.
|`pylsp.configurationSources`|`array` of unique `string` (one of: `pycodestyle`, `pyflakes`) items | List of configuration sources to use. |`["pycodestyle"]`|
6
+
|`pylsp.configurationSources`|`array` of unique `string` (one of: `'pycodestyle'`, `'flake8'`) items | List of configuration sources to use. |`["pycodestyle"]`|
7
7
|`pylsp.plugins.autopep8.enabled`|`boolean`| Enable or disable the plugin (disabling required to use `yapf`). |`true`|
8
8
|`pylsp.plugins.flake8.config`|`string`| Path to the config file that will be the authoritative config source. |`null`|
9
9
|`pylsp.plugins.flake8.enabled`|`boolean`| Enable or disable the plugin. |`false`|
@@ -25,7 +25,7 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
25
25
|`pylsp.plugins.jedi_completion.include_function_objects`|`boolean`| Adds function objects as a separate completion item. |`true`|
26
26
|`pylsp.plugins.jedi_completion.fuzzy`|`boolean`| Enable fuzzy when requesting autocomplete. |`false`|
27
27
|`pylsp.plugins.jedi_completion.eager`|`boolean`| Resolve documentation and detail eagerly. |`false`|
28
-
|`pylsp.plugins.jedi_completion.resolve_at_most`|`number`| How many labels and snippets (at most) should be resolved? |`25`|
28
+
|`pylsp.plugins.jedi_completion.resolve_at_most`|`integer`| How many labels and snippets (at most) should be resolved? |`25`|
29
29
|`pylsp.plugins.jedi_completion.cache_for`|`array` of `string` items | Modules for which labels and snippets should be cached. |`["pandas", "numpy", "tensorflow", "matplotlib"]`|
30
30
|`pylsp.plugins.jedi_definition.enabled`|`boolean`| Enable or disable the plugin. |`true`|
31
31
|`pylsp.plugins.jedi_definition.follow_imports`|`boolean`| The goto call will follow imports. |`true`|
@@ -37,23 +37,23 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
37
37
|`pylsp.plugins.jedi_symbols.all_scopes`|`boolean`| If True lists the names of all scopes instead of only the module namespace. |`true`|
38
38
|`pylsp.plugins.jedi_symbols.include_import_symbols`|`boolean`| If True includes symbols imported from other libraries. |`true`|
39
39
|`pylsp.plugins.mccabe.enabled`|`boolean`| Enable or disable the plugin. |`true`|
40
-
|`pylsp.plugins.mccabe.threshold`|`number`| The minimum threshold that triggers warnings about cyclomatic complexity. |`15`|
40
+
|`pylsp.plugins.mccabe.threshold`|`integer`| The minimum threshold that triggers warnings about cyclomatic complexity. |`15`|
41
41
|`pylsp.plugins.preload.enabled`|`boolean`| Enable or disable the plugin. |`true`|
42
42
|`pylsp.plugins.preload.modules`|`array` of unique `string` items | List of modules to import on startup |`[]`|
43
43
|`pylsp.plugins.pycodestyle.enabled`|`boolean`| Enable or disable the plugin. |`true`|
44
44
|`pylsp.plugins.pycodestyle.exclude`|`array` of unique `string` items | Exclude files or directories which match these patterns. |`[]`|
45
45
|`pylsp.plugins.pycodestyle.filename`|`array` of unique `string` items | When parsing directories, only check filenames matching these patterns. |`[]`|
46
-
|`pylsp.plugins.pycodestyle.select`|`array` of unique `string` items | Select errors and warnings |`[]`|
46
+
|`pylsp.plugins.pycodestyle.select`|`array` of unique `string` items | Select errors and warnings |`null`|
47
47
|`pylsp.plugins.pycodestyle.ignore`|`array` of unique `string` items | Ignore errors and warnings |`[]`|
48
48
|`pylsp.plugins.pycodestyle.hangClosing`|`boolean`| Hang closing bracket instead of matching indentation of opening bracket's line. |`null`|
49
-
|`pylsp.plugins.pycodestyle.maxLineLength`|`number`| Set maximum allowed line length. |`null`|
49
+
|`pylsp.plugins.pycodestyle.maxLineLength`|`integer`| Set maximum allowed line length. |`null`|
50
50
|`pylsp.plugins.pycodestyle.indentSize`|`integer`| Set indentation spaces. |`null`|
51
51
|`pylsp.plugins.pydocstyle.enabled`|`boolean`| Enable or disable the plugin. |`false`|
52
-
|`pylsp.plugins.pydocstyle.convention`|`string` (one of: `pep257`, `numpy`, `None`) | Choose the basic list of checked errors by specifying an existing convention. |`null`|
52
+
|`pylsp.plugins.pydocstyle.convention`|`string` (one of: `'pep257'`, `'numpy'`, `None`) | Choose the basic list of checked errors by specifying an existing convention. |`null`|
53
53
|`pylsp.plugins.pydocstyle.addIgnore`|`array` of unique `string` items | Ignore errors and warnings in addition to the specified convention. |`[]`|
54
54
|`pylsp.plugins.pydocstyle.addSelect`|`array` of unique `string` items | Select errors and warnings in addition to the specified convention. |`[]`|
55
55
|`pylsp.plugins.pydocstyle.ignore`|`array` of unique `string` items | Ignore errors and warnings |`[]`|
56
-
|`pylsp.plugins.pydocstyle.select`|`array` of unique `string` items | Select errors and warnings |`[]`|
56
+
|`pylsp.plugins.pydocstyle.select`|`array` of unique `string` items | Select errors and warnings |`null`|
57
57
|`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"`|
58
58
|`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. |`"[^\\.].*"`|
59
59
|`pylsp.plugins.pyflakes.enabled`|`boolean`| Enable or disable the plugin. |`true`|
"description": "This server can be configured using `workspace/didChangeConfiguration` method. Each configuration option is described below:",
4
+
"description": "This server can be configured using the `workspace/didChangeConfiguration` method. Each configuration option is described below. Note, a value of `null` means that we do not set a value and thus use the plugin's default value.",
5
5
"type": "object",
6
6
"properties": {
7
7
"pylsp.configurationSources": {
@@ -10,7 +10,7 @@
10
10
"description": "List of configuration sources to use.",
11
11
"items": {
12
12
"type": "string",
13
-
"enum": ["pycodestyle", "pyflakes"]
13
+
"enum": ["pycodestyle", "flake8"]
14
14
},
15
15
"uniqueItems": true
16
16
},
@@ -136,7 +136,7 @@
136
136
"description": "Resolve documentation and detail eagerly."
0 commit comments