Skip to content

Commit fb48958

Browse files
tillhainbachaminyaTill Hainbach
authored
feat: add support for pyls-mypy (#232)
Co-authored-by: Amin Yahyaabadi <[email protected]> Co-authored-by: Till Hainbach <[email protected]>
1 parent 4b88bac commit fb48958

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

lib/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class PythonLanguageClient extends AutoLanguageClient {
8383
"Make sure to install `pyls` 0.19 or newer by running:\n" +
8484
"```\n" +
8585
`${python} -m pip install 'python-language-server[all]'\n` +
86+
`${python} -m pip install git+https://github.com/tomv564/pyls-mypy.git\n` +
8687
"```",
8788
})
8889
}

package.json

+20
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,26 @@
443443
}
444444
}
445445
},
446+
"pyls_mypy": {
447+
"title": "MyPy",
448+
"type": "object",
449+
"properties": {
450+
"enabled": {
451+
"title": "Enabled",
452+
"type": "boolean",
453+
"order": 1,
454+
"default": true,
455+
"description": "Enable or disable MyPy."
456+
},
457+
"live_mode": {
458+
"title": "Live mode",
459+
"type": "boolean",
460+
"order": 1,
461+
"default": true,
462+
"description": "Turn on live mode. If disabled, mypy linters on file save. Note: Linting on file save may not work on all machines."
463+
}
464+
}
465+
},
446466
"flake8": {
447467
"title": "Flake8",
448468
"type": "object",

0 commit comments

Comments
 (0)