Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

"Mypy found no problems" after adding "[plugins]" part in mypy.ini #109

@HappyCthulhu

Description

@HappyCthulhu

Step 1: Are you in the right place?

  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of the plugin.

Step 2: Describe your environment

  • Plugin version: 0.15.0
  • PyCharm/IDEA version: 2022.3.3
  • Mypy version: 1.2.0

Step 3: Describe the problem:

I know, that similar problem was described in this issue. But nobody told, how to reproduce it. So, i will)

Steps to reproduce:

  1. install lib django-stubs[compatible-mypy] to your project with pip install django-stubs[compatible-mypy]
  2. add it in plugins part like this:
[mypy]
mypy_path = stubs/

plugins =
    mypy_django_plugin.main

Observed Results:

  • Mypy found no problems

So, after adding plugins part mypy pycharm plugin cant find any problems. But, if u with run mypy throung terminal, its finds problems.

Expected Results:

  • Mypy plugin shows same errors as in terminal (mypy binary)

Before adding plugins part:
image

After adding plugins part:
image

Mypy binary:
image

My config:

[mypy]
mypy_path = stubs/
plugins =
    mypy_django_plugin.main


    [mypy.plugins.django-stubs]
    django_settings_module = "config.settings"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions