microsoft / microsoft/vscode-mypy
`ignorePatterns` appears to be ignored when `reportingScope=workspace`
- 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
Assessment
This issue has not been assessed yet.