Skip to content

ignorePatterns appears to be ignored when reportingScope=workspace #362

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 ignorePatterns glob is no longer relative to the project root #338, hence the ${workspaceFolder} prefix)
  6. observe the warning disappear
  7. set mypy-type-checker.reportingScope to workspace
  8. observe the warning return.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugtriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions