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 | |
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
-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] |