Skip to content

Commit

Permalink
Update test dependencies (#455)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
jorisroovers committed Feb 24, 2023
1 parent 45bca01 commit d463132
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions gitlint-core/gitlint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,14 +530,15 @@ def build(self, config=None):

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

Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit d463132

Please sign in to comment.