Skip to content

Commit c30b69d

Browse files
committed
Add configuration via lsp guide to README
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.
1 parent 637dd7c commit c30b69d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@ With ``report_progress`` your config could look like this:
120120
"report_progress": True
121121
}
122122

123+
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``:
124+
125+
::
126+
127+
pylsp = {
128+
plugins = {
129+
pylsp_mypy = {
130+
enabled = true,
131+
live_mode = false,
132+
dmypy = true,
133+
strict = false,
134+
},
135+
}
136+
}
137+
123138
Developing
124139
-------------
125140

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

0 commit comments

Comments
 (0)