diff options
author | Joris Roovers <joris.roovers@gmail.com> | 2023-02-24 10:02:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 10:02:57 +0000 |
commit | d46313295eacd303a23f931a43cf24298a771152 (patch) | |
tree | 0b15acc23a679a2d3d5ef2a5a64af26f0c1bfe80 /gitlint-core | |
parent | 45bca01e097447f02185a18ca88de9925ba6ad6a (diff) |
Update test dependencies (#455)
- pytest: 7.2.0 -> 7.2.1
- black: 22.10.0 -> 23.1.0
- ruff: 0.0.244 -> 0.0.252
- pdr: 0.7.5 -> 0.8.2
Diffstat (limited to 'gitlint-core')
-rw-r--r-- | gitlint-core/gitlint/config.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gitlint-core/gitlint/config.py b/gitlint-core/gitlint/config.py index 3870caa..4b38d90 100644 --- a/gitlint-core/gitlint/config.py +++ b/gitlint-core/gitlint/config.py @@ -530,14 +530,15 @@ class LintConfigBuilder: for section_name, section_dict in self._config_blueprint.items(): for option_name, option_value in section_dict.items(): + qualified_section_name = section_name # Skip over the general section, as we've already done that above - if section_name != "general": + if qualified_section_name != "general": # If the section name contains a colon (:), then this section is defining a Named Rule # Which means we need to instantiate that Named Rule in the config. if self.RULE_QUALIFIER_SYMBOL in section_name: - section_name = self._add_named_rule(config, section_name) + qualified_section_name = self._add_named_rule(config, qualified_section_name) - config.set_rule_option(section_name, option_name, option_value) + config.set_rule_option(qualified_section_name, option_name, option_value) return config |