Skip to content

Allow disabling mypy completely per module/package #3383

@Daenyth

Description

@Daenyth

I'd like to exclude a package from mypy entirely. Due to some constraints right now, I need to commit some generated code to my repo, and it's breaking my mypy setup because it's untyped.

I can't just tune down the parameters because mypy treats certain ones as global - I tried flipping all the flags off that I could, but even setting follow_imports = silent in my mypy.ini under [mypy-pkg/foo], I still get errors about error: No library stub file for module 'blah' coming from inside the foo package

This would also help make it easier for new projects to start using mypy incrementally in their CI, by blacklisting sections that haven't been updated yet.

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