Skip to main content

Mypy linter for the Python Language Server

Project description

https://badge.fury.io/py/mypy-ls.svg https://github.com/Richardk2n/pyls-mypy/workflows/Python%20package/badge.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.6 or newer.

Installation

Install into the same virtualenv as pyls itself.

pip install mypy-ls

Configuration

live_mode (default is True) provides type checking as you type. This writes to a tempfile every time a check is done.

Turning off live_mode means you must save your changes for mypy diagnostics to update correctly.

Depending on your editor, the configuration (found in a file called mypy-ls.cfg in your workspace or a parent directory) should be roughly like this:

{
    "enabled": True,
    "live_mode": True,
    "strict": 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

mypy-ls-0.3.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

mypy_ls-0.3.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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