8000 Support warn_unused_configs in incremental mode · Issue #7998 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
Support warn_unused_configs in incremental mode #7998
Open
@ilevkivskyi

Description

@ilevkivskyi

Imagine a config file like this:

[mypy-package.lib.uitls]
disallow_any_generics = True

There is a typo in the section name so the stricter option is not actually applied. Another (probably more common) situation is when a file is moved to a different place, but the config is not updated.

I think we should make it an error (or warning, similar to unrecognized config option) if there is an unmatched section without * wildcards.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0