Skip to content
forked from tomv564/pyls-mypy

Mypy plugin for the Python Language Server

License

Notifications You must be signed in to change notification settings

haplo/pyls-mypy

This branch is up to date with tomv564/pyls-mypy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b105b4 · Mar 14, 2020

History

50 Commits
Mar 14, 2020
Oct 5, 2019
Aug 8, 2017
Oct 29, 2018
Aug 8, 2017
Aug 13, 2017
Oct 5, 2019
Mar 14, 2020
Oct 4, 2019
Oct 4, 2019
Aug 8, 2017

Repository files navigation

Mypy plugin for PYLS

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
        }
    }
}

About

Mypy plugin for the Python Language Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%