Skip to content

Commit

Permalink
feat: add support for pyls-mypy (#232)
Browse files Browse the repository at this point in the history
Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
Co-authored-by: Till Hainbach <Till.Hainbach@toll-collect.de>
  • Loading branch information
3 people authored Mar 23, 2021
1 parent 4b88bac commit fb48958
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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` +
"```",
})
}
Expand Down
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fb48958

Please sign in to comment.