Skip to content

Commit ff97bb7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 779f57d commit ff97bb7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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)