diff options
Diffstat (limited to 'pylint/config')
-rw-r--r-- | pylint/config/option_manager_mixin.py | 1 | ||||
-rw-r--r-- | pylint/config/option_parser.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index 6720bc40e..1871e7fd6 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -271,6 +271,7 @@ class OptionsManagerMixIn: use_config_file = config_file and os.path.exists(config_file) if use_config_file: + self.set_current_module(config_file) parser = self.cfgfile_parser if config_file.endswith(".toml"): self._parse_toml(config_file, parser) diff --git a/pylint/config/option_parser.py b/pylint/config/option_parser.py index 16d1ea87e..66b573723 100644 --- a/pylint/config/option_parser.py +++ b/pylint/config/option_parser.py @@ -24,8 +24,7 @@ class OptionParser(optparse.OptionParser): formatter = self.formatter outputlevel = getattr(formatter, "output_level", 0) formatter.store_option_strings(self) - result = [] - result.append(formatter.format_heading("Options")) + result = [formatter.format_heading("Options")] formatter.indent() if self.option_list: result.append(optparse.OptionContainer.format_option_help(self, formatter)) |