Skip to content

Make it possible to use modules or packages configurations with files #14829

@alxroyer

Description

@alxroyer

Feature

Make it possible to use modules or packages configurations with files.

Pitch

Currently, when using modules or packages configurations with files, we get the following error:

usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: May only specify one of: module/package, files, or command.

I did not see any mention of such restriction in the documentation.

Nevertheless, it could be useful to check in a single mypy execution:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions