Skip to content

Commit

Permalink
Continue reading next config file if no config section in shared conf…
Browse files Browse the repository at this point in the history
…ig file (#9114)
  • Loading branch information
jmetz authored Oct 18, 2020
1 parent 27a9830 commit cbf7705
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,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
Expand Down

0 comments on commit cbf7705

Please sign in to comment.