Skip to content

Commit 5f7ab73

Browse files
committed
Update and run pre-commit hooks
1 parent fb9e89b commit 5f7ab73

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55
repos:
66
# Syntax validation and some basic sanity checks
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.6.0
8+
rev: v5.0.0
99
hooks:
1010
- id: check-merge-conflict
1111
- id: check-ast
@@ -16,15 +16,15 @@ repos:
1616
- id: check-yaml
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.6.2
19+
rev: v0.11.13
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
2323
- id: ruff-format
2424

2525
# Type checking
2626
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v1.11.2
27+
rev: v1.16.0
2828
hooks:
2929
- id: mypy
3030
files: 'src/.*\.py$'

src/zocalo/configuration/plugin_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
8080
for level, verbosity_def in enumerate(logconfig.get("verbose", [])):
8181
if not isinstance(verbosity_def, dict):
8282
raise zocalo.ConfigurationError(
83-
f"Logging configuration error: verbosity level {level+1} definition "
83+
f"Logging configuration error: verbosity level {level + 1} definition "
8484
"is not a dictionary"
8585
)
8686
verbosity_def.setdefault("version", logconfig["version"])
@@ -89,7 +89,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
8989
verbosity_def
9090
):
9191
raise zocalo.ConfigurationError(
92-
f"Logging configuration error: verbosity level {level+1} definition "
92+
f"Logging configuration error: verbosity level {level + 1} definition "
9393
"defines items not allowed in an incremental definition"
9494
)
9595

tests/configuration/test_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_configuration_can_specify_a_missing_resolution_file(tmp_path):
270270
f"""
271271
version: 1
272272
unused-plugin:
273-
{tmp_path / 'missing_file'}
273+
{tmp_path / "missing_file"}
274274
"""
275275
)
276276

@@ -320,7 +320,7 @@ def test_plugins_can_be_configured_in_an_external_file(tmp_path):
320320
f"""
321321
version: 1
322322
external:
323-
{tmp_path / 'external.yml'}
323+
{tmp_path / "external.yml"}
324324
environments:
325325
ext:
326326
- external

0 commit comments

Comments
 (0)