sublimelsp / LSP-pylsp

Convenience package for the Python Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot disable mypy

ybbond opened this issue · comments

Summary

Eventhough mypy disabled in LSP-pylsp preference, but mypy still reproduce cache file and check for errors

Expected Results

mypy disabled if configured so in LSP-pylsp preference

Details

I have explicitly configured so that mypy disabled:

// Settings in here override those in "LSP-pylsp/LSP-pylsp.sublime-settings"
{
  "settings": {
    "pylsp.env": {
      "PYTHONPATH": "$sublime_py_files_dir:$packages",
      // "MYPY_PATH": "$sublime_py_files_dir:$packages"
    },
    "pylsp.plugins.mypy-ls.enabled": false,
    "pylsp.plugins.mypy-ls.live_mode": false,
  },
}

but when I open any Python files, it still reproduce .mypy.cache file and still show mypy errors

Screenshot of LSP-pylsp mypy error

There is some weird discrepancy in key naming in mypy_ls. Using pylsp.plugins.mypy_ls.enabled (with the underscore) works.

I'll update the settings and schema once python-lsp/pylsp-mypy#7 is addressed one way or another.

I've released new version with the setting renamed to pylsp.plugins.mypy_ls.enabled.