File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 5
5
repos :
6
6
# Syntax validation and some basic sanity checks
7
7
- repo : https://github.com/pre-commit/pre-commit-hooks
8
- rev : v4.6 .0
8
+ rev : v5.0 .0
9
9
hooks :
10
10
- id : check-merge-conflict
11
11
- id : check-ast
@@ -16,15 +16,15 @@ repos:
16
16
- id : check-yaml
17
17
18
18
- repo : https://github.com/astral-sh/ruff-pre-commit
19
- rev : v0.6.2
19
+ rev : v0.11.13
20
20
hooks :
21
21
- id : ruff
22
22
args : [--fix, --show-fixes, --exit-non-zero-on-fix]
23
23
- id : ruff-format
24
24
25
25
# Type checking
26
26
- repo : https://github.com/pre-commit/mirrors-mypy
27
- rev : v1.11.2
27
+ rev : v1.16.0
28
28
hooks :
29
29
- id : mypy
30
30
files : ' src/.*\.py$'
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
80
80
for level , verbosity_def in enumerate (logconfig .get ("verbose" , [])):
81
81
if not isinstance (verbosity_def , dict ):
82
82
raise zocalo .ConfigurationError (
83
- f"Logging configuration error: verbosity level { level + 1 } definition "
83
+ f"Logging configuration error: verbosity level { level + 1 } definition "
84
84
"is not a dictionary"
85
85
)
86
86
verbosity_def .setdefault ("version" , logconfig ["version" ])
@@ -89,7 +89,7 @@ def activate(configuration: dict) -> LoggingIncrementer:
89
89
verbosity_def
90
90
):
91
91
raise zocalo .ConfigurationError (
92
- f"Logging configuration error: verbosity level { level + 1 } definition "
92
+ f"Logging configuration error: verbosity level { level + 1 } definition "
93
93
"defines items not allowed in an incremental definition"
94
94
)
95
95
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def test_configuration_can_specify_a_missing_resolution_file(tmp_path):
270
270
f"""
271
271
version: 1
272
272
unused-plugin:
273
- { tmp_path / ' missing_file' }
273
+ { tmp_path / " missing_file" }
274
274
"""
275
275
)
276
276
@@ -320,7 +320,7 @@ def test_plugins_can_be_configured_in_an_external_file(tmp_path):
320
320
f"""
321
321
version: 1
322
322
external:
323
- { tmp_path / ' external.yml' }
323
+ { tmp_path / " external.yml" }
324
324
environments:
325
325
ext:
326
326
- external
You can’t perform that action at this time.
0 commit comments