Skip to content

Request: equivalent CLI option to ruff's --add-noqa to add type: ignore comments #16751

Open
@jamesbraza

Description

@jamesbraza

Feature

ruff has an --add-noqa option to add noqa directives in all places: https://docs.astral.sh/ruff/linter/#inserting-necessary-suppression-comments

It would nice if mypy had something similar, like a --add-ignore CLI argument

Pitch

This would enable a new route to adopt mypy, mainly suppressing all type errors with type: ignore comments, and slowly removing them over time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions