pyls.schema.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. {
  2. "title": "Python Language Server Configuration",
  3. "type": "object",
  4. "properties": {
  5. "pyls.executable": {
  6. "type": "string",
  7. "default": "pyls",
  8. "description": "Language server executable"
  9. },
  10. "pyls.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. "pyls.plugins.jedi_completion.enabled": {
  21. "type": "boolean",
  22. "default": true,
  23. "description": "Enable or disable the plugin."
  24. },
  25. "pyls.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. "pyls.plugins.jedi_definition.enabled": {
  31. "type": "boolean",
  32. "default": true,
  33. "description": "Enable or disable the plugin."
  34. },
  35. "pyls.plugins.jedi_definition.follow_imports": {
  36. "type": "boolean",
  37. "default": true,
  38. "description": "The goto call will follow imports."
  39. },
  40. "pyls.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. "pyls.plugins.jedi_hover.enabled": {
  46. "type": "boolean",
  47. "default": true,
  48. "description": "Enable or disable the plugin."
  49. },
  50. "pyls.plugins.jedi_references.enabled": {
  51. "type": "boolean",
  52. "default": true,
  53. "description": "Enable or disable the plugin."
  54. },
  55. "pyls.plugins.jedi_signature_help.enabled": {
  56. "type": "boolean",
  57. "default": true,
  58. "description": "Enable or disable the plugin."
  59. },
  60. "pyls.plugins.jedi_symbols.enabled": {
  61. "type": "boolean",
  62. "default": true,
  63. "description": "Enable or disable the plugin."
  64. },
  65. "pyls.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. "pyls.plugins.mccabe.enabled": {
  71. "type": "boolean",
  72. "default": true,
  73. "description": "Enable or disable the plugin."
  74. },
  75. "pyls.plugins.mccabe.threshold": {
  76. "type": "number",
  77. "default": 15,
  78. "description": "The minimum threshold that triggers warnings about cyclomatic complexity."
  79. },
  80. "pyls.plugins.preload.enabled": {
  81. "type": "boolean",
  82. "default": true,
  83. "description": "Enable or disable the plugin."
  84. },
  85. "pyls.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. "pyls.plugins.pycodestyle.enabled": {
  95. "type": "boolean",
  96. "default": true,
  97. "description": "Enable or disable the plugin."
  98. },
  99. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.plugins.pycodestyle.maxLineLength": {
  141. "type": "number",
  142. "default": null,
  143. "description": "Set maximum allowed line length."
  144. },
  145. "pyls.plugins.pydocstyle.enabled": {
  146. "type": "boolean",
  147. "default": false,
  148. "description": "Enable or disable the plugin."
  149. },
  150. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.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. "pyls.plugins.pyflakes.enabled": {
  203. "type": "boolean",
  204. "default": true,
  205. "description": "Enable or disable the plugin."
  206. },
  207. "pyls.plugins.pylint.enabled": {
  208. "type": "boolean",
  209. "default": true,
  210. "description": "Enable or disable the plugin."
  211. },
  212. "pyls.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. "pyls.plugins.rope_completion.enabled": {
  222. "type": "boolean",
  223. "default": true,
  224. "description": "Enable or disable the plugin."
  225. },
  226. "pyls.plugins.yapf.enabled": {
  227. "type": "boolean",
  228. "default": true,
  229. "description": "Enable or disable the plugin."
  230. },
  231. "pyls.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. "pyls.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. }