microsoft / microsoft/vscode-mypy

`ignorePatterns` appears to be ignored when `reportingScope=workspace`

Open
#362 0 comments 0 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
bug triage-needed
Dominant language
Python
Stars
150
Forks
39
Avg merge
21h 45m
Merged PRs (30d)
8

Description

## Diagnostic Data
- Python version (& distribution if applicable, e.g., Anaconda): Python 3.12.8
- Type of virtual environment used (e.g., conda, venv, virtualenv, etc.): venv (via poetry)
- Operating system (and version): MacOS 15.3.2
- Version of tool extension you are using: 2025.2.0

## Behaviour
### Expected Behavior
`ignorePatterns` should be applied when `mypy-type-checker.reportingScope` is set to `workspace`.

### Actual Behavior
`ignorePatterns` is not be applied when `mypy-type-checker.reportingScope` is set to `workspace`.

## Reproduction Steps:
1. create a workspace
2. add a foo.py in the root, with a deliberate type error
3. ensure `mypy-type-checker.reportingScope` is set to `file`
4. observe a warning
5. set `mypy-type-checker.ignorePatterns` to `["${workspaceFolder}/foo.py"]` (beware #338, hence the `${workspaceFolder}` prefix)
6. observe the warning disappear
7. set `mypy-type-checker.reportingScope` to `workspace`
8. observe the warning return.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.