emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.8k stars 892 forks source link

Add configuration options for the mypy pylsp plugin #4370

Closed LaurenceWarne closed 8 months ago

LaurenceWarne commented 8 months ago

Hi! This PR adds configuration options for the mypy pylsp plugin, documented at https://github.com/python-lsp/pylsp-mypy. Configuration using LSP is not documented (yet :slightly_smiling_face:), but appears to be supported - I've tested most of the options locally.

jcs090218 commented 8 months ago

I overlooked a warning, see https://github.com/emacs-lsp/lsp-mode/actions/runs/8295196871/job/22701748075#step:12:503. 🤔

lsp-pylsp.el:477:2: Warning: custom-declare-variable `lsp-pylsp-plugins-mypy-dmypy' docstring has wrong usage of unescaped single quotes (use \= or different quoting)
LaurenceWarne commented 8 months ago

Sorry again: https://github.com/emacs-lsp/lsp-mode/pull/4381!