diff options
-rw-r--r-- | gitlint-core/gitlint/config.py | 7 | ||||
-rw-r--r-- | pyproject.toml | 12 |
2 files changed, 10 insertions, 9 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 diff --git a/pyproject.toml b/pyproject.toml index 98b60f5..957aed8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,13 +82,13 @@ Test environment (unit tests, formatting, lint) skip-install = true dependencies = [ "gitlint-core[trusted-deps] @ {root:uri}/gitlint-core", - "black==22.10.0", - "pytest==7.2.0", + "black==23.1.0", + "pytest==7.2.1", "pytest-cov==4.0.0", "python-coveralls==2.9.3", - "ruff==0.0.244", + "ruff==0.0.252", "radon==5.1.0", - "pdbr==0.7.5; sys_platform != \"win32\"", + "pdbr==0.8.2; sys_platform != \"win32\"", ] [tool.hatch.envs.test.scripts] @@ -120,10 +120,10 @@ Run a set of integration tests against any gitlint binary (not just the one from """ detached = true dependencies = [ - "pytest==7.2.0", + "pytest==7.2.1", "arrow==1.2.3", "sh==1.14.3; sys_platform != \"win32\"", - "pdbr==0.7.5; sys_platform != \"win32\"", + "pdbr==0.8.2; sys_platform != \"win32\"", ] [tool.hatch.envs.qa.scripts] |