Skip to main content

Mypy linter for the Python Language Server

Project description

https://badge.fury.io/py/pyls-mypy.svg https://travis-ci.org/tomv564/pyls-mypy.svg?branch=master

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

pyls-mypy-0.1.8.tar.gz (20.1 kB view details)

Uploaded Source

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

Hashes for pyls-mypy-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3fd83028961f0ca9eb3048b7a01cf42a9e3d46d8ea4935c1424c33da22c3eb03
MD5 dc2b353f02039a7c91e04adcb68aa867
BLAKE2b-256 20bacf645c7deabc2cf082d0d7871a3a461a605afef700504c59771b1a8f56da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page