Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomv564/pyls-mypy
Mypy plugin for the Python Language Server
https://github.com/tomv564/pyls-mypy
Last synced: 12 days ago
JSON representation
Mypy plugin for the Python Language Server
- Host: GitHub
- URL: https://github.com/tomv564/pyls-mypy
- Owner: tomv564
- License: mit
- Created: 2017-08-08T13:06:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-13T09:10:48.000Z (about 2 years ago)
- Last Synced: 2024-08-19T05:52:29.615Z (3 months ago)
- Language: Python
- Size: 43.9 KB
- Stars: 110
- Watchers: 5
- Forks: 60
- Open Issues: 19
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Mypy plugin for PYLS
======================.. image:: https://badge.fury.io/py/pyls-mypy.svg
:target: https://badge.fury.io/py/pyls-mypy.. image:: https://travis-ci.org/tomv564/pyls-mypy.svg?branch=master
:target: https://travis-ci.org/tomv564/pyls-mypyThis is a plugin for the Palantir's Python Language Server (https://github.com/palantir/python-language-server)
It, like mypy, requires Python 3.2 or newer.
Installation
------------Install into the same virtualenv as pyls itself.
``pip install pyls-mypy``
Configuration
-------------``live_mode`` (default is True) provides type checking as you type.
As mypy is unaware of what file path is being checked, there are limitations with live_mode
- Imports cannot be followed correctly
- Stub files are not validated correctlyTurning off live_mode means you must save your changes for mypy diagnostics to update correctly.
Depending on your editor, the configuration should be roughly like this:
::
"pyls":
{
"plugins":
{
"pyls_mypy":
{
"enabled": true,
"live_mode": false
}
}
}