diff --git a/mypy/config_parser.py b/mypy/config_parser.py index 21a9c7306b91..c9aef40452d4 100644 --- a/mypy/config_parser.py +++ b/mypy/config_parser.py @@ -118,6 +118,8 @@ def parse_config_file(options: Options, set_strict_flags: Callable[[], None], except configparser.Error as err: print("%s: %s" % (config_file, err), file=stderr) else: + if config_file in defaults.SHARED_CONFIG_FILES and 'mypy' not in parser: + continue file_read = config_file options.config_file = file_read break