Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
/ dmypy-ls Public archive

mypy language server (using mypy server instead of command line)

License

Notifications You must be signed in to change notification settings

sileht/dmypy-ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmypy-ls: mypy language server

It is a PoC language server using dmypy internal API, not intended to be daily used.

It supports diagnostics only.

The first run is very slow as dmypy has to build a cache, and dmypy rebuilds the cache for no obvious reason when multiple files are opened.

These days mypy cli is still faster because of the efficient disk cache it has now.

Install

$ pipx install 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

About

mypy language server (using mypy server instead of command line)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages