Skip to main content

super fast mypy language server

Project description

It leverages mypy.dmypy_server instead of the slow cli interface.

First run takes same time as mypy cli, but next are super fast as mypy.dmypy_server only reload the changed file.

It supports diagnostics only.

Status

On works on Open and Save for now

The on Change could be implemented if the mypy FineGrainedBuildManager uses BuildSource of the dmypy_server instead of always reread file from disk…

Install

$ pip install --user dmypy-ls

vim-lspconfig

lua << EOF
require("lspconfig.configs")["dmypyls"] = {
    default_config = {
        cmd = { 'dmypy-ls' },
        filetypes = { 'python' },
        root_dir = lspconfig.util.root_pattern('pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', 'Pipfile'),
        single_file_support = true,
    },
}
require("lspconfip").dmypyls.setup({})
EOF

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

dmypy_ls-1.13.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

dmypy_ls-1.13-py3-none-any.whl (7.7 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