Skip to content

User-specific config file #4815

@OmeGak

Description

@OmeGak

Feature request. According to my search-fu, it hasn't been discussed yet.

mypy with no --config-file specified will check for mypy.ini first, use to setup.cfg otherwise, and ultimately fallback to the built-in defaults if none of them are present. I would like to have a user-default config that would be used instead. Would it be too crazy to check for ~/.mypy.ini before falling back to the built-in defaults?

I would find this useful for quick prototyping without having to copy&paste my preferred configuration from other projects. It's also quite a common pattern in other static analysis tools like linters.

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