Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
repos:
# Syntax validation and some basic sanity checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-ast
Expand All @@ -16,15 +16,15 @@ repos:
- id: check-yaml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.11.4
hooks:
- id: ruff
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format

# Type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.15.0
hooks:
- id: mypy
files: 'src/.*\.py$'
Expand Down
4 changes: 2 additions & 2 deletions src/zocalo/configuration/plugin_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
for level, verbosity_def in enumerate(logconfig.get("verbose", [])):
if not isinstance(verbosity_def, dict):
raise zocalo.ConfigurationError(
f"Logging configuration error: verbosity level {level+1} definition "
f"Logging configuration error: verbosity level {level + 1} definition "
"is not a dictionary"
)
verbosity_def.setdefault("version", logconfig["version"])
Expand All @@ -89,7 +89,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
verbosity_def
):
raise zocalo.ConfigurationError(
f"Logging configuration error: verbosity level {level+1} definition "
f"Logging configuration error: verbosity level {level + 1} definition "
"defines items not allowed in an incremental definition"
)

Expand Down
4 changes: 2 additions & 2 deletions tests/configuration/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_configuration_can_specify_a_missing_resolution_file(tmp_path):
f"""
version: 1
unused-plugin:
{tmp_path / 'missing_file'}
{tmp_path / "missing_file"}
"""
)

Expand Down Expand Up @@ -320,7 +320,7 @@ def test_plugins_can_be_configured_in_an_external_file(tmp_path):
f"""
version: 1
external:
{tmp_path / 'external.yml'}
{tmp_path / "external.yml"}
environments:
ext:
- external
Expand Down
Loading