Skip to content

mypy is not ignoring items specified in mypy-type-checker.ignorePatterns #214

@tabbea

Description

@tabbea

After switching from my local mypy installation to the VSCode mypy extension, I am struggling with mypy failing to ignore the specified files/folders.

My settings.json contains the following:

"mypy-type-checker.args": [
    "--strict",
    "--implicit-reexport",
    "--namespace-packages",
    "--show-column-numbers",
    // "--cache-dir=.mypy_cache/.vscode",
],
"mypy-type-checker.preferDaemon": true,
"mypy-type-checker.reportingScope": "workspace",
"mypy-type-checker.ignorePatterns": [
    "**/graveyard/*.py",
    "**/graveyard/*.txt",
],

The Mypy Type Checker confirms this when outputting [info] Global settings:

"ignorePatterns": [
    "**/graveyard/*.py",
    "**/graveyard/*.txt",
],

However, it still outputs the following:

/mnt/c/Users/bread/Documents/abz_code/graveyard/simulator_old.py:244: error: Name "ctp.SimTemplate" is not defined  [name-defined]

I would appreciate any advice on what I am doing wrong and/or what mypy is doing wrong.
Thank you in advance!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions