Mypy does not respect setting in mypy.ini to exclude folder from checking when called from VS Code
08:11 09 Jun 2021

I would like to exclude a folder from the mypy checks. Looking at the documentation I tried the following configuration in my mypy.ini configuration file

[mypy]  
python_version = 3.8  
exclude '/venv/'

with no luck.

I want to exclude my virtual environment from mypy checking. I only one to type check the code that I write.

Is it a bug from mypy?

I am using mypy 0.901 and mypy-extensions 0.4.3. Also I am using mypy vs-code extension 0.2.0.

python virtualenv visual-studio-code vscode-extensions mypy