Skip to content

Commit 8b73ada

Browse files
committed
Add support for some pycodestyle options
1 parent 1feeb75 commit 8b73ada

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

package.json

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,29 @@
2727
"dependencies": {
2828
"atom-languageclient": "^0.8.2"
2929
},
30-
"enhancedScopes": [
31-
"source.python"
32-
],
30+
"enhancedScopes": ["source.python"],
3331
"configSchema": {
3432
"pylsPath": {
3533
"title": "Python Language Server Path",
3634
"order": 1,
3735
"type": "string",
3836
"default": "pyls",
39-
"description": "Absolute path to ```pyls``` executable."
37+
"description": "Absolute path to `pyls` executable."
4038
},
4139
"pylsPlugins": {
4240
"title": "Python Language Server Plugins",
4341
"type": "object",
4442
"properties": {
43+
"configurationSources": {
44+
"type": "array",
45+
"default": ["pycodestyle"],
46+
"description":
47+
"List of configuration sources to use. Requires `pyls` 0.12.1+",
48+
"items": {
49+
"type": "string",
50+
"enum": ["pycodestyle", "pyflakes"]
51+
}
52+
},
4553
"jedi_completion": {
4654
"title": "Jedi Completion",
4755
"type": "object",
@@ -117,7 +125,8 @@
117125
"title": "All Scopes",
118126
"type": "boolean",
119127
"default": true,
120-
"description": "If enabled lists the names of all scopes instead of only the module namespace. Requires pyls 0.7.0+"
128+
"description":
129+
"If enabled lists the names of all scopes instead of only the module namespace. Requires `pyls` 0.7.0+"
121130
}
122131
}
123132
},
@@ -135,7 +144,8 @@
135144
"title": "Threshold",
136145
"type": "number",
137146
"default": 15,
138-
"description": "The minimum threshold that triggers warnings about cyclomatic complexity."
147+
"description":
148+
"The minimum threshold that triggers warnings about cyclomatic complexity."
139149
}
140150
}
141151
},
@@ -148,6 +158,18 @@
148158
"type": "boolean",
149159
"default": true,
150160
"description": "Enable or disable PyCodeStyle."
161+
},
162+
"hangClosing": {
163+
"type": "boolean",
164+
"default": false,
165+
"description":
166+
"Hang closing bracket instead of matching indentation of opening bracket's line. Requires `pyls` 0.12.1+"
167+
},
168+
"maxLineLength": {
169+
"type": "number",
170+
"default": 79,
171+
"description":
172+
"Set maximum allowed line length. Requires `pyls` 0.12.1+"
151173
}
152174
}
153175
},
@@ -175,6 +197,18 @@
175197
}
176198
}
177199
},
200+
"rope_completion": {
201+
"title": "Rope Completion",
202+
"type": "object",
203+
"properties": {
204+
"enabled": {
205+
"type": "boolean",
206+
"default": false,
207+
"description":
208+
"Enable or disable the plugin. Requires `pyls` 0.12.1+"
209+
}
210+
}
211+
},
178212
"yapf": {
179213
"title": "Yapf",
180214
"type": "object",

0 commit comments

Comments
 (0)