Skip to content

Commit ffc65b0

Browse files
committed
Update python-lsp-server.schema.json
1 parent 49f9691 commit ffc65b0

File tree

1 file changed

+246
-0
lines changed

1 file changed

+246
-0
lines changed
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
{
2+
"title": "Python Language Server Configuration",
3+
"type": "object",
4+
"properties": {
5+
"pylsp.executable": {
6+
"type": "string",
7+
"default": "pylsp",
8+
"description": "Language server executable"
9+
},
10+
"pylsp.configurationSources": {
11+
"type": "array",
12+
"default": ["pycodestyle"],
13+
"description": "List of configuration sources to use.",
14+
"items": {
15+
"type": "string",
16+
"enum": ["pycodestyle", "pyflakes"]
17+
},
18+
"uniqueItems": true
19+
},
20+
"pylsp.plugins.jedi_completion.enabled": {
21+
"type": "boolean",
22+
"default": true,
23+
"description": "Enable or disable the plugin."
24+
},
25+
"pylsp.plugins.jedi_completion.include_params": {
26+
"type": "boolean",
27+
"default": true,
28+
"description": "Auto-completes methods and classes with tabstops for each parameter."
29+
},
30+
"pylsp.plugins.jedi_definition.enabled": {
31+
"type": "boolean",
32+
"default": true,
33+
"description": "Enable or disable the plugin."
34+
},
35+
"pylsp.plugins.jedi_definition.follow_imports": {
36+
"type": "boolean",
37+
"default": true,
38+
"description": "The goto call will follow imports."
39+
},
40+
"pylsp.plugins.jedi_definition.follow_builtin_imports": {
41+
"type": "boolean",
42+
"default": true,
43+
"description": "If follow_imports is True will decide if it follow builtin imports."
44+
},
45+
"pylsp.plugins.jedi_hover.enabled": {
46+
"type": "boolean",
47+
"default": true,
48+
"description": "Enable or disable the plugin."
49+
},
50+
"pylsp.plugins.jedi_references.enabled": {
51+
"type": "boolean",
52+
"default": true,
53+
"description": "Enable or disable the plugin."
54+
},
55+
"pylsp.plugins.jedi_signature_help.enabled": {
56+
"type": "boolean",
57+
"default": true,
58+
"description": "Enable or disable the plugin."
59+
},
60+
"pylsp.plugins.jedi_symbols.enabled": {
61+
"type": "boolean",
62+
"default": true,
63+
"description": "Enable or disable the plugin."
64+
},
65+
"pylsp.plugins.jedi_symbols.all_scopes": {
66+
"type": "boolean",
67+
"default": true,
68+
"description": "If True lists the names of all scopes instead of only the module namespace."
69+
},
70+
"pylsp.plugins.mccabe.enabled": {
71+
"type": "boolean",
72+
"default": true,
73+
"description": "Enable or disable the plugin."
74+
},
75+
"pylsp.plugins.mccabe.threshold": {
76+
"type": "number",
77+
"default": 15,
78+
"description": "The minimum threshold that triggers warnings about cyclomatic complexity."
79+
},
80+
"pylsp.plugins.preload.enabled": {
81+
"type": "boolean",
82+
"default": true,
83+
"description": "Enable or disable the plugin."
84+
},
85+
"pylsp.plugins.preload.modules": {
86+
"type": "array",
87+
"default": null,
88+
"items": {
89+
"type": "string"
90+
},
91+
"uniqueItems": true,
92+
"description": "List of modules to import on startup"
93+
},
94+
"pylsp.plugins.pycodestyle.enabled": {
95+
"type": "boolean",
96+
"default": true,
97+
"description": "Enable or disable the plugin."
98+
},
99+
"pylsp.plugins.pycodestyle.exclude": {
100+
"type": "array",
101+
"default": null,
102+
"items": {
103+
"type": "string"
104+
},
105+
"uniqueItems": true,
106+
"description": "Exclude files or directories which match these patterns."
107+
},
108+
"pylsp.plugins.pycodestyle.filename": {
109+
"type": "array",
110+
"default": null,
111+
"items": {
112+
"type": "string"
113+
},
114+
"uniqueItems": true,
115+
"description": "When parsing directories, only check filenames matching these patterns."
116+
},
117+
"pylsp.plugins.pycodestyle.select": {
118+
"type": "array",
119+
"default": null,
120+
"items": {
121+
"type": "string"
122+
},
123+
"uniqueItems": true,
124+
"description": "Select errors and warnings"
125+
},
126+
"pylsp.plugins.pycodestyle.ignore": {
127+
"type": "array",
128+
"default": null,
129+
"items": {
130+
"type": "string"
131+
},
132+
"uniqueItems": true,
133+
"description": "Ignore errors and warnings"
134+
},
135+
"pylsp.plugins.pycodestyle.hangClosing": {
136+
"type": "boolean",
137+
"default": null,
138+
"description": "Hang closing bracket instead of matching indentation of opening bracket's line."
139+
},
140+
"pylsp.plugins.pycodestyle.maxLineLength": {
141+
"type": "number",
142+
"default": null,
143+
"description": "Set maximum allowed line length."
144+
},
145+
"pylsp.plugins.pydocstyle.enabled": {
146+
"type": "boolean",
147+
"default": false,
148+
"description": "Enable or disable the plugin."
149+
},
150+
"pylsp.plugins.pydocstyle.convention": {
151+
"type": "string",
152+
"default": null,
153+
"enum": ["pep257", "numpy"],
154+
"description": "Choose the basic list of checked errors by specifying an existing convention."
155+
},
156+
"pylsp.plugins.pydocstyle.addIgnore": {
157+
"type": "array",
158+
"default": null,
159+
"items": {
160+
"type": "string"
161+
},
162+
"uniqueItems": true,
163+
"description": "Ignore errors and warnings in addition to the specified convention."
164+
},
165+
"pylsp.plugins.pydocstyle.addSelect": {
166+
"type": "array",
167+
"default": null,
168+
"items": {
169+
"type": "string"
170+
},
171+
"uniqueItems": true,
172+
"description": "Select errors and warnings in addition to the specified convention."
173+
},
174+
"pylsp.plugins.pydocstyle.ignore": {
175+
"type": "array",
176+
"default": null,
177+
"items": {
178+
"type": "string"
179+
},
180+
"uniqueItems": true,
181+
"description": "Ignore errors and warnings"
182+
},
183+
"pylsp.plugins.pydocstyle.select": {
184+
"type": "array",
185+
"default": null,
186+
"items": {
187+
"type": "string"
188+
},
189+
"uniqueItems": true,
190+
"description": "Select errors and warnings"
191+
},
192+
"pylsp.plugins.pydocstyle.match": {
193+
"type": "string",
194+
"default": "(?!test_).*\\.py",
195+
"description": "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'."
196+
},
197+
"pylsp.plugins.pydocstyle.matchDir": {
198+
"type": "string",
199+
"default": "[^\\.].*",
200+
"description": "Search only dirs that exactly match the given regular expression; default is to match dirs which do not begin with a dot."
201+
},
202+
"pylsp.plugins.pyflakes.enabled": {
203+
"type": "boolean",
204+
"default": true,
205+
"description": "Enable or disable the plugin."
206+
},
207+
"pylsp.plugins.pylint.enabled": {
208+
"type": "boolean",
209+
"default": true,
210+
"description": "Enable or disable the plugin."
211+
},
212+
"pylsp.plugins.pylint.args": {
213+
"type": "array",
214+
"default": null,
215+
"items": {
216+
"type": "string"
217+
},
218+
"uniqueItems": false,
219+
"description": "Arguments to pass to pylint."
220+
},
221+
"pylsp.plugins.rope_completion.enabled": {
222+
"type": "boolean",
223+
"default": true,
224+
"description": "Enable or disable the plugin."
225+
},
226+
"pylsp.plugins.yapf.enabled": {
227+
"type": "boolean",
228+
"default": true,
229+
"description": "Enable or disable the plugin."
230+
},
231+
"pylsp.rope.extensionModules": {
232+
"type": "string",
233+
"default": null,
234+
"description": "Builtin and c-extension modules that are allowed to be imported and inspected by rope."
235+
},
236+
"pylsp.rope.ropeFolder": {
237+
"type": "array",
238+
"default": null,
239+
"items": {
240+
"type": "string"
241+
},
242+
"uniqueItems": true,
243+
"description": "The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all."
244+
}
245+
}
246+
}

0 commit comments

Comments
 (0)