|
7 | 7 | "ide", |
8 | 8 | "python", |
9 | 9 | "atom-ide", |
10 | | - "languageserver", |
11 | | - "language-server-protocol", |
12 | | - "language-client", |
13 | 10 | "autocomplete", |
14 | 11 | "jedi", |
15 | 12 | "rope", |
16 | 13 | "pyflakes", |
17 | 14 | "pycodestyle", |
18 | 15 | "pydocstyle", |
| 16 | + "autopep8", |
19 | 17 | "yapf", |
20 | | - "mccabe" |
| 18 | + "mccabe", |
| 19 | + "languageserver", |
| 20 | + "language-server-protocol", |
| 21 | + "language-client" |
21 | 22 | ], |
22 | 23 | "repository": "https://github.com/lgeiger/ide-python", |
23 | 24 | "license": "MIT", |
|
27 | 28 | "dependencies": { |
28 | 29 | "atom-languageclient": "^0.9.1" |
29 | 30 | }, |
30 | | - "enhancedScopes": [ |
31 | | - "source.python" |
32 | | - ], |
| 31 | + "enhancedScopes": ["source.python"], |
33 | 32 | "configSchema": { |
34 | 33 | "pylsPath": { |
35 | 34 | "title": "Python Language Server Path", |
|
39 | 38 | "description": "Absolute path to `pyls` executable." |
40 | 39 | }, |
41 | 40 | "pylsConfigurationSources": { |
| 41 | + "order": 2, |
42 | 42 | "type": "array", |
43 | | - "default": [ |
44 | | - "pycodestyle" |
45 | | - ], |
| 43 | + "default": ["pycodestyle", "flake8"], |
46 | 44 | "description": "List of configuration sources to use. Requires `pyls` 0.12.1+", |
47 | 45 | "items": { |
48 | 46 | "type": "string", |
49 | | - "enum": [ |
50 | | - "pycodestyle", |
51 | | - "flake8" |
52 | | - ] |
| 47 | + "enum": ["pycodestyle", "flake8"] |
53 | 48 | } |
54 | 49 | }, |
| 50 | + "ropeFolder": { |
| 51 | + "order": 3, |
| 52 | + "type": ["string", null], |
| 53 | + "default": ".ropeproject", |
| 54 | + "description": |
| 55 | + "The name of the folder in which rope stores project configurations and data. If empty, no such a folder is used at all. Requires `pyls` 0.17+" |
| 56 | + }, |
55 | 57 | "pylsPlugins": { |
56 | 58 | "title": "Python Language Server Plugins", |
57 | 59 | "type": "object", |
|
131 | 133 | "title": "All Scopes", |
132 | 134 | "type": "boolean", |
133 | 135 | "default": true, |
134 | | - "description": "If enabled lists the names of all scopes instead of only the module namespace. Requires `pyls` 0.7.0+" |
| 136 | + "description": |
| 137 | + "If enabled lists the names of all scopes instead of only the module namespace. Requires `pyls` 0.7+" |
135 | 138 | } |
136 | 139 | } |
137 | 140 | }, |
|
149 | 152 | "title": "Threshold", |
150 | 153 | "type": "number", |
151 | 154 | "default": 15, |
152 | | - "description": "The minimum threshold that triggers warnings about cyclomatic complexity." |
| 155 | + "description": |
| 156 | + "The minimum threshold that triggers warnings about cyclomatic complexity." |
153 | 157 | } |
154 | 158 | } |
155 | 159 | }, |
|
158 | 162 | "type": "object", |
159 | 163 | "properties": { |
160 | 164 | "enabled": { |
| 165 | + "order": 1, |
161 | 166 | "title": "Enabled", |
162 | 167 | "type": "boolean", |
163 | 168 | "default": true, |
164 | 169 | "description": "Enable or disable PyCodeStyle." |
165 | 170 | }, |
166 | 171 | "select": { |
| 172 | + "order": 2, |
| 173 | + "title": "Select", |
167 | 174 | "type": "array", |
168 | | - "default": [], |
169 | 175 | "items": { |
170 | 176 | "type": "string" |
171 | 177 | }, |
| 178 | + "default": [], |
172 | 179 | "description": "Select errors and warnings. Requires `pyls` 0.14+" |
173 | 180 | }, |
174 | 181 | "ignore": { |
| 182 | + "order": 3, |
| 183 | + "title": "Ignore", |
175 | 184 | "type": "array", |
176 | | - "default": [ |
177 | | - "E121", |
178 | | - "E123", |
179 | | - "E126", |
180 | | - "E226", |
181 | | - "E24", |
182 | | - "E704", |
183 | | - "W503" |
184 | | - ], |
| 185 | + "default": ["E121", "E123", "E126", "E226", "E24", "E704", "W503"], |
185 | 186 | "items": { |
186 | 187 | "type": "string" |
187 | 188 | }, |
188 | 189 | "description": "Ignore errors and warnings. Requires `pyls` 0.14+" |
189 | 190 | }, |
190 | 191 | "hangClosing": { |
| 192 | + "order": 4, |
| 193 | + "title": "Hang Closing", |
191 | 194 | "type": "boolean", |
192 | 195 | "default": false, |
193 | | - "description": "Hang closing bracket instead of matching indentation of opening bracket's line. Requires `pyls` 0.12.1+" |
| 196 | + "description": |
| 197 | + "Hang closing bracket instead of matching indentation of opening bracket's line. Requires `pyls` 0.12.1+" |
194 | 198 | }, |
195 | 199 | "maxLineLength": { |
| 200 | + "order": 5, |
| 201 | + "title": "Max Line Length", |
196 | 202 | "type": "number", |
197 | 203 | "default": 79, |
198 | 204 | "description": "Set maximum allowed line length. Requires `pyls` 0.12.1+" |
|
204 | 210 | "type": "object", |
205 | 211 | "properties": { |
206 | 212 | "enabled": { |
| 213 | + "order": 1, |
207 | 214 | "title": "Enabled", |
208 | 215 | "type": "boolean", |
209 | 216 | "default": false, |
210 | 217 | "description": "Enable or disable PyDocStyle." |
| 218 | + }, |
| 219 | + "match": { |
| 220 | + "order": 2, |
| 221 | + "title": "Match", |
| 222 | + "type": "string", |
| 223 | + "default": "(?!test_).*\\.py", |
| 224 | + "description": |
| 225 | + "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'. Requires `pyls` 0.17+" |
| 226 | + }, |
| 227 | + "matchDir": { |
| 228 | + "order": 3, |
| 229 | + "title": "Match Dir", |
| 230 | + "type": "string", |
| 231 | + "default": "[^\\.].*", |
| 232 | + "description": |
| 233 | + "Search only dirs that exactly match the given regular expression; default is to match dirs which do not begin with a dot. Requires `pyls` 0.17+" |
| 234 | + }, |
| 235 | + "select": { |
| 236 | + "order": 4, |
| 237 | + "title": "Select", |
| 238 | + "type": "array", |
| 239 | + "default": [], |
| 240 | + "items": { |
| 241 | + "type": "string" |
| 242 | + }, |
| 243 | + "description": "Select errors and warnings Requires `pyls` 0.17+" |
| 244 | + }, |
| 245 | + "ignore": { |
| 246 | + "order": 5, |
| 247 | + "title": "Ignore", |
| 248 | + "type": "array", |
| 249 | + "default": [], |
| 250 | + "items": { |
| 251 | + "type": "string" |
| 252 | + }, |
| 253 | + "description": "Ignore errors and warnings Requires `pyls` 0.17+" |
| 254 | + }, |
| 255 | + "convention": { |
| 256 | + "order": 6, |
| 257 | + "title": "Convention", |
| 258 | + "type": "string", |
| 259 | + "enum": ["pep257", "numpy", ""], |
| 260 | + "default": "", |
| 261 | + "description": |
| 262 | + "Choose the basic list of checked errors by specifying an existing convention. Requires `pyls` 0.17+" |
| 263 | + }, |
| 264 | + "addSelect": { |
| 265 | + "order": 7, |
| 266 | + "title": "Add Select", |
| 267 | + "type": "array", |
| 268 | + "default": [], |
| 269 | + "items": { |
| 270 | + "type": "string" |
| 271 | + }, |
| 272 | + "description": |
| 273 | + "Select errors and warnings in addition to the specified convention. Requires `pyls` 0.17+" |
| 274 | + }, |
| 275 | + "addIgnore": { |
| 276 | + "order": 8, |
| 277 | + "title": "Add Ignore", |
| 278 | + "type": "array", |
| 279 | + "default": [], |
| 280 | + "items": { |
| 281 | + "type": "string" |
| 282 | + }, |
| 283 | + "description": |
| 284 | + "Ignore errors and warnings in addition to the specified convention. Requires `pyls` 0.17+" |
211 | 285 | } |
212 | 286 | } |
213 | 287 | }, |
|
228 | 302 | "type": "object", |
229 | 303 | "properties": { |
230 | 304 | "enabled": { |
| 305 | + "title": "Enabled", |
231 | 306 | "type": "boolean", |
232 | 307 | "default": false, |
233 | 308 | "description": "Enable or disable the plugin. Requires `pyls` 0.12.1+" |
|
237 | 312 | "yapf": { |
238 | 313 | "title": "Yapf", |
239 | 314 | "type": "object", |
| 315 | + "properties": { |
| 316 | + "enabled": { |
| 317 | + "title": "Enabled", |
| 318 | + "type": "boolean", |
| 319 | + "default": false, |
| 320 | + "description": |
| 321 | + "Enable or disable Yapf. If both Yapf and autopep8 are enabled the latter is prefered." |
| 322 | + } |
| 323 | + } |
| 324 | + }, |
| 325 | + "autopep8": { |
| 326 | + "title": "autopep8", |
| 327 | + "type": "object", |
240 | 328 | "properties": { |
241 | 329 | "enabled": { |
242 | 330 | "title": "Enabled", |
243 | 331 | "type": "boolean", |
244 | 332 | "default": true, |
245 | | - "description": "Enable or disable Yapf." |
| 333 | + "description": |
| 334 | + "Enable or disable autopep8. Formats code according to PyCodeStyle config. Requires `pyls` 0.17+" |
246 | 335 | } |
247 | 336 | } |
248 | 337 | } |
|
0 commit comments