Config file
By default settings are read from mypy.ini
or setup.cfg
in thecurrent directory, or .mypy.ini
in the user’s home directory.Settings override mypy’s built-in defaults and command line flagscan override settings.
Specifying —config-file=
(with no filename) will ignore _all_config files.
See The mypy configuration file for the syntax of configuration files.
—warn-unused-configs
- This flag makes mypy warn about unused
[mypy-<pattern>]
configfile sections.(This requires turning off incremental mode using—no-incremental
.)