Skip to content

Support warn_unused_configs in incremental mode #7998

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions