From e88ec2044c009efe97e3e34c5c82181b703ed9e4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 23 Aug 2021 00:11:07 +0200 Subject: [PATCH 1/2] Fix typo in documented enum variants for configurationSources --- vscode-client/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode-client/package.json b/vscode-client/package.json index f28437ca..e12a8e91 100644 --- a/vscode-client/package.json +++ b/vscode-client/package.json @@ -31,7 +31,7 @@ "description": "List of configuration sources to use.", "items": { "type": "string", - "enum": ["pycodestyle", "pyflakes"] + "enum": ["pycodestyle", "flake8"] }, "uniqueItems": true }, From 925a1b87c82e2c9cdcdeabdb6c0428030f9646b2 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 24 Aug 2021 22:17:01 +0200 Subject: [PATCH 2/2] Fix ReST syntax in README Inline code is specified by exactly two surrounding backticks. Reformulate the first sentence so it's more consistent with the second. --- README.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 2dbe128c..64b90116 100644 --- a/README.rst +++ b/README.rst @@ -64,16 +64,14 @@ Configuration is loaded from zero or more configuration sources. Currently imple * pycodestyle: discovered in ~/.config/pycodestyle, setup.cfg, tox.ini and pycodestyle.cfg. * flake8: discovered in ~/.config/flake8, setup.cfg, tox.ini and flake8.cfg -The default configuration source is pycodestyle. Change the `pyls.configurationSources` setting to `['flake8']` in -order to respect flake8 configuration instead. +The default configuration source is pycodestyle. Use ``"pyls.configurationSources": ['flake8']`` in your LSP configuration to respect flake8 configuration instead. Overall configuration is computed first from user configuration (in home directory), overridden by configuration passed in by the language client, and then overriden by configuration discovered in the workspace. To enable pydocstyle for linting docstrings add the following setting in your LSP configuration: -``` -"pyls.plugins.pydocstyle.enabled": true -``` + +``"pyls.plugins.pydocstyle.enabled": true`` See `vscode-client/package.json`_ for the full set of supported configuration options.