Skip to content

Commit 9a2cacf

Browse files
authored
Add autopep8.enabled to the configuration schema (#225)
1 parent fa27a2b commit 9a2cacf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CONFIGURATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
44
| **Configuration Key** | **Type** | **Description** | **Default**
55
|----|----|----|----|
66
| `pylsp.configurationSources` | `array` of unique `string` (one of: `pycodestyle`, `pyflakes`) items | List of configuration sources to use. | `["pycodestyle"]` |
7+
| `pylsp.plugins.autopep8.enabled` | `boolean` | Enable or disable the plugin (disabling required to use `yapf`). | `true` |
78
| `pylsp.plugins.flake8.config` | `string` | Path to the config file that will be the authoritative config source. | `null` |
89
| `pylsp.plugins.flake8.enabled` | `boolean` | Enable or disable the plugin. | `false` |
910
| `pylsp.plugins.flake8.exclude` | `array` of `string` items | List of files or directories to exclude. | `[]` |

pylsp/config/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
},
1515
"uniqueItems": true
1616
},
17+
"pylsp.plugins.autopep8.enabled": {
18+
"type": "boolean",
19+
"default": true,
20+
"description": "Enable or disable the plugin (disabling required to use `yapf`)."
21+
},
1722
"pylsp.plugins.flake8.config": {
1823
"type": ["string", "null"],
1924
"default": null,

0 commit comments

Comments
 (0)