Skip to content

--silent-imports prevent my code from being checked #2411

Closed
@sametmax

Description

@sametmax

I have a tests directory containing unit tests for code in a src dir.

Currently I can either:

  • use --silent-imports and gets no warning for missing stubs in 3rd party library. But then any line using the code from src is not going to be checked.
  • or not silent imports, but have my tox commands fails because missing stubs will make mypy return an error code.

I need a way to silence import error, but still have my imports to be followed and checked.

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