From fb489582ff25538e026f91815ee58e8a16654688 Mon Sep 17 00:00:00 2001 From: tillhainbach <33448151+tillhainbach@users.noreply.github.com> Date: Tue, 23 Mar 2021 13:09:55 +0100 Subject: [PATCH] feat: add support for pyls-mypy (#232) Co-authored-by: Amin Yahyaabadi Co-authored-by: Till Hainbach --- lib/main.js | 1 + package.json | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lib/main.js b/lib/main.js index 0aea2032..6cc999fd 100644 --- a/lib/main.js +++ b/lib/main.js @@ -83,6 +83,7 @@ class PythonLanguageClient extends AutoLanguageClient { "Make sure to install `pyls` 0.19 or newer by running:\n" + "```\n" + `${python} -m pip install 'python-language-server[all]'\n` + + `${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` + "```", }) } diff --git a/package.json b/package.json index 1f90a4d8..a4302aa4 100644 --- a/package.json +++ b/package.json @@ -443,6 +443,26 @@ } } }, + "pyls_mypy": { + "title": "MyPy", + "type": "object", + "properties": { + "enabled": { + "title": "Enabled", + "type": "boolean", + "order": 1, + "default": true, + "description": "Enable or disable MyPy." + }, + "live_mode": { + "title": "Live mode", + "type": "boolean", + "order": 1, + "default": true, + "description": "Turn on live mode. If disabled, mypy linters on file save. Note: Linting on file save may not work on all machines." + } + } + }, "flake8": { "title": "Flake8", "type": "object",