Mypy linter for the Python Language Server
Project description
This 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 correctly
Turning 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 } } }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyls-mypy-0.1.8.tar.gz
.
File metadata
- Download URL: pyls-mypy-0.1.8.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3fd83028961f0ca9eb3048b7a01cf42a9e3d46d8ea4935c1424c33da22c3eb03
|
|
MD5 |
dc2b353f02039a7c91e04adcb68aa867
|
|
BLAKE2b-256 |
20bacf645c7deabc2cf082d0d7871a3a461a605afef700504c59771b1a8f56da
|