Skip to content

Commit

Permalink
Add autopep8.enabled to the configuration schema (python-lsp#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun authored Jul 2, 2022
1 parent fa27a2b commit 9a2cacf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This server can be configured using `workspace/didChangeConfiguration` method. E
| **Configuration Key** | **Type** | **Description** | **Default**
|----|----|----|----|
| `pylsp.configurationSources` | `array` of unique `string` (one of: `pycodestyle`, `pyflakes`) items | List of configuration sources to use. | `["pycodestyle"]` |
| `pylsp.plugins.autopep8.enabled` | `boolean` | Enable or disable the plugin (disabling required to use `yapf`). | `true` |
| `pylsp.plugins.flake8.config` | `string` | Path to the config file that will be the authoritative config source. | `null` |
| `pylsp.plugins.flake8.enabled` | `boolean` | Enable or disable the plugin. | `false` |
| `pylsp.plugins.flake8.exclude` | `array` of `string` items | List of files or directories to exclude. | `[]` |
Expand Down
5 changes: 5 additions & 0 deletions pylsp/config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
},
"uniqueItems": true
},
"pylsp.plugins.autopep8.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable the plugin (disabling required to use `yapf`)."
},
"pylsp.plugins.flake8.config": {
"type": ["string", "null"],
"default": null,
Expand Down

0 comments on commit 9a2cacf

Please sign in to comment.