Skip to content

utybo/mypy-issue-89-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mypy-vscode #89 repro

Installation: poetry install, then open the repository in VS Code.

Expected

When opening the VS Code repository from the root, the Mypy extension should display the same errors as running mypy in the my-python-project folder:

$ poetry run mypy .
my_python_project/reportme.py:2: error: Incompatible return value type (got "int", expected "str")  [return-value]
Found 1 error in 1 file (checked 3 source files)

Actual

The mypy extension shows two problems:

Example

It does correctly take the mypy.ini file into account as the error in example.py did disappear.

As I understand it, the main issue is that the exclude rules don't work as they're probably being interpreted relative to the root of the opened workspace, not the Python project's root.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages