Skip to content

Commit

Permalink
PR: Update third-party plugins in README (#32)
Browse files Browse the repository at this point in the history
* Update third-party plugins in README

* Add missing pyls-flake8 link

* Better description for isort

* Add link to MyPy

* Add link to flake8

* Replace references to Language Server with LSP Server

* Mark debounce tests as flaky

Co-authored-by: Edgar Andrés Margffoy Tuay <[email protected]>
  • Loading branch information
haplo and andfoy authored May 20, 2021
1 parent 22a746e commit 8ffb159
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ 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](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).
- [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

Expand All @@ -64,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
Expand Down
4 changes: 2 additions & 2 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 8ffb159

Please sign in to comment.