Skip to content

Commit

Permalink
Add configuration via lsp guide to README
Browse files Browse the repository at this point in the history
Add configuration via lsp guide to README in a similar manner to the
description given in https://github.com/python-lsp/python-lsp-ruff#configuration.
  • Loading branch information
LaurenceWarne committed Mar 13, 2024
1 parent 637dd7c commit c30b69d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ With ``report_progress`` your config could look like this:
"report_progress": True
}

Configuration via LSP (see `python-lsp-server's configuration`_ documentation) is also supported with options taking the ``pylsp.plugins.pylsp_mypy`` prefix. For example using ``neovim``:

::

pylsp = {
plugins = {
pylsp_mypy = {
enabled = true,
live_mode = false,
dmypy = true,
strict = false,
},
}
}

Developing
-------------

Expand Down Expand Up @@ -148,4 +163,5 @@ After that pre-commit will run `all defined hooks`_ on every ``git commit`` and
.. _rst-linter: https://github.com/Lucas-C/pre-commit-hooks-markup
.. _rstcheck: https://github.com/myint/rstcheck
.. _pre-commit: https://pre-commit.com/
.. _python-lsp-server's configuration: https://github.com/python-lsp/python-lsp-server/#configuration
.. _all defined hooks: .pre-commit-config.yaml

0 comments on commit c30b69d

Please sign in to comment.