Skip to content

Commit

Permalink
Ran pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Aug 7, 2024
1 parent 097e332 commit 0b420ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/model_config_tests/qa/test_access_esm1p5_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ def set_config_scenario(self) -> str:
# Config type start section: '^.+-' for 'release-', 'dev-'...
# Scenario section: '([^+]+)' for 'preindustrial', 'historical'...anything that isn't the '+' modifier sigil
# Modifiers end section: '(?:\+.+)*' any amount of '+modifer' sections
scenario_match = re.match(r"^.+-(?P<scenario>[^+]+)(?:\+.+)*$", self.branch_name)
if not scenario_match or 'scenario' not in scenario_match.groupdict():
scenario_match = re.match(

Check warning on line 48 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L48

Added line #L48 was not covered by tests
r"^.+-(?P<scenario>[^+]+)(?:\+.+)*$", self.branch_name
)
if not scenario_match or "scenario" not in scenario_match.groupdict():
pytest.fail(

Check warning on line 52 in src/model_config_tests/qa/test_access_esm1p5_config.py

View check run for this annotation

Codecov / codecov/patch

src/model_config_tests/qa/test_access_esm1p5_config.py#L51-L52

Added lines #L51 - L52 were not covered by tests
f"Could not find a scenario in the branch {self.branch_name}. "
+ "Branches must be of the form 'type-scenario[+modifier...]'. "
Expand Down

0 comments on commit 0b420ad

Please sign in to comment.