From d8cf86e779bc86b43de9e263f82b56c831e2cf2d Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 16:06:38 +0200 Subject: [PATCH 1/7] Update third-party plugins in README --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99d5ee98..f709f2bf 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,11 @@ pip install -U setuptools Installing these plugins will add extra functionality to the language server: -- [pyls-mypy](https://github.com/tomv564/pyls-mypy) Mypy type checking for Python 3 -- [pyls-isort](https://github.com/paradoxxxzero/pyls-isort) Isort import sort code formatting -- [pyls-black](https://github.com/rupert/pyls-black) for code formatting using [Black](https://github.com/ambv/black) -- [pyls-memestra](https://github.com/QuantStack/pyls-memestra) for detecting the use of deprecated APIs +- [pyls-flake8](): Error checking using flake8. +- [mypy-ls](https://github.com/Richardk2n/mypy-ls): MyPy type checking for Python 3. +- [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): [isort](https://github.com/PyCQA/isort) import sort code formatting. +- [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). +- [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs. Please see the above repositories for examples on how to write plugins for the Python Language Server. Please file an issue if you require assistance writing a plugin. From 36817c8a9b7c61578c0672b193812d8dc2a8f807 Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 20:21:33 +0200 Subject: [PATCH 2/7] Add missing pyls-flake8 link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f709f2bf..58d7e618 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ pip install -U setuptools Installing these plugins will add extra functionality to the language server: -- [pyls-flake8](): Error checking using flake8. +- [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using flake8. - [mypy-ls](https://github.com/Richardk2n/mypy-ls): MyPy type checking for Python 3. - [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): [isort](https://github.com/PyCQA/isort) import sort code formatting. - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). From b39fdf2f080ed598c6031ce471a7233cb2bc8ada Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 20:23:46 +0200 Subject: [PATCH 3/7] Better description for isort --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58d7e618..b5a769a1 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Installing these plugins will add extra functionality to the language server: - [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using flake8. - [mypy-ls](https://github.com/Richardk2n/mypy-ls): MyPy type checking for Python 3. -- [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): [isort](https://github.com/PyCQA/isort) import sort code formatting. +- [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): code formatting using [isort](https://github.com/PyCQA/isort) (automatic import sorting). - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). - [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs. From 6b8e5e8048d255bd237f08a3b78a9beab2ef6ae4 Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 20:24:31 +0200 Subject: [PATCH 4/7] Add link to MyPy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5a769a1..0acaec9d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ pip install -U setuptools Installing these plugins will add extra functionality to the language server: - [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using flake8. -- [mypy-ls](https://github.com/Richardk2n/mypy-ls): MyPy type checking for Python 3. +- [mypy-ls](https://github.com/Richardk2n/mypy-ls): [MyPy](http://mypy-lang.org/) type checking for Python 3. - [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): code formatting using [isort](https://github.com/PyCQA/isort) (automatic import sorting). - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). - [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs. From 28f1285f9a9a74f631d68ea2a9f3a0bf19ef1a7f Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 20:25:07 +0200 Subject: [PATCH 5/7] Add link to flake8 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0acaec9d..bc806793 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ pip install -U setuptools Installing these plugins will add extra functionality to the language server: -- [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using flake8. +- [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using [flake8](https://flake8.pycqa.org/en/latest/). - [mypy-ls](https://github.com/Richardk2n/mypy-ls): [MyPy](http://mypy-lang.org/) type checking for Python 3. - [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): code formatting using [isort](https://github.com/PyCQA/isort) (automatic import sorting). - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). From 1d53dc4a9253af42dbc7ad5ee932ee3b25061cdf Mon Sep 17 00:00:00 2001 From: Fidel Ramos Date: Wed, 19 May 2021 21:54:03 +0200 Subject: [PATCH 6/7] Replace references to Language Server with LSP Server --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc806793..80fcfe03 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Installing these plugins will add extra functionality to the language server: - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). - [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs. -Please see the above repositories for examples on how to write plugins for the Python Language Server. Please file an issue if you require assistance writing a plugin. +Please see the above repositories for examples on how to write plugins for the Python LSP Server. Please file an issue if you require assistance writing a plugin. ## Configuration @@ -65,7 +65,7 @@ Overall configuration is computed first from user configuration (in home directo To enable pydocstyle for linting docstrings add the following setting in your LSP configuration: `"pylsp.plugins.pydocstyle.enabled": true` -## Language Server Features +## LSP Server Features * Auto Completion * Code Linting From 38f2c23232b553caf213312aae8a3a4503875ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Thu, 20 May 2021 11:11:27 -0500 Subject: [PATCH 7/7] Mark debounce tests as flaky --- test/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index 0ce6d9dd..61e4f1f5 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -9,7 +9,7 @@ from pylsp import _utils -@flaky +@flaky(max_runs=6, min_passes=1) def test_debounce(): interval = 0.1 obj = mock.Mock() @@ -33,7 +33,7 @@ def call_m(): assert len(obj.mock_calls) == 2 -@flaky +@flaky(max_runs=6, min_passes=1) def test_debounce_keyed_by(): interval = 0.1 obj = mock.Mock()