- Check Python code in Jupyter notebooks. PR #96 by @arikrundquist.
- Add commands
Mypy: Recheck Workspace
andMypy: Restart Daemon and Recheck Workspace
. - Add help link when dmypy executable is not found.
- Add
mypy.extraArguments
setting to allow passing additional arguments to mypy (#35). - Display mypy's error codes with links to relevant documentation (PR #74 by @vidhanio.)
- Group long mypy messages into a single VS Code diagnostic (also in PR #74).
- Use Python extension's new environments API for better detection of the active Python interpreter (#70).
- Better error message when running mypy using active interpreter (#71).
Add the mypy.enabled
setting to allow disabling Mypy for a specific workspace or workspace folder (#41, PR by @LaurensBosscher).
- Fix issues related to daemon not being properly closed: #47, #45, #37.
- Add
mypy.debugLogging
setting.
- Do not fail when
show_absolute_path = True
is specified in the mypy configuration file (#38, PR by @sidharthv96).
-
The extension no longer uses
mypyls
(the mypy language server). We now use the mypy daemon (dmypy
) which is built into mypy. This leads to less maintenance burden, full mypy feature support, and easier installation. -
The
mypy.executable
setting is now deprecated (because it used to point to mypyls which is no longer used). Use the newmypy.dmypyExecutable
instead (which points to dmypy). The extension will attempt to migrate your settings automatically if needed. -
Added support for multiple workspace folders. A separate mypy daemon will be launched for each workspace folder. All configuration settings can be set on a per-folder basis if desired.
-
Added the option
mypy.runUsingActiveInterpreter
to run dmypy using the interpreter that is currently selected in the Python extension. Can be useful if you install a specific version of mypy in each project. However, normally this is not needed (your code is always checked against the active interpreter anyway). -
The extension no longer overrides mypy's
check_untyped_defs
setting to true. This means that code inside unannotated functions will no longer be checked by default. If you want the old behavior, create amypy.ini
file with the following contents:[mypy] check_untyped_defs=true
-
Support the new interpreter storage in the Python extension (experimental replacement for the
python.pythonPath
setting). -
Support more mypy config file options, e.g.
files
andstrict
(in mypyls these options were not supported).