File tree Expand file tree Collapse file tree 5 files changed +21
-15
lines changed Expand file tree Collapse file tree 5 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 66exclude : .asv
77
88repos :
9+ - repo : https://github.com/abravalheri/validate-pyproject
10+ rev : v0.24.1
11+ hooks :
12+ - id : validate-pyproject
13+
14+ - repo : https://github.com/rhysd/actionlint
15+ rev : v1.7.8
16+ hooks :
17+ - id : actionlint
18+ files : " ^\\ .github/workflows/.*\\ .ya?ml$"
19+
920 - repo : https://github.com/adhtruong/mirrors-typos
10- rev : v1.36.2
21+ rev : v1.38.1
1122 hooks :
1223 - id : typos
1324 args : [--force-exclude] # omitting --write-changes
1425
1526 - repo : https://github.com/astral-sh/ruff-pre-commit
16- rev : v0.12.11
27+ rev : v0.14.0
1728 hooks :
1829 - id : ruff-check
1930 args : [--fix, --unsafe-fixes]
2031 - id : ruff-format
2132
22- - repo : https://github.com/abravalheri/validate-pyproject
23- rev : v0.24.1
24- hooks :
25- - id : validate-pyproject
26-
2733 - repo : https://github.com/pre-commit/mirrors-mypy
28- rev : v1.17.1
34+ rev : v1.18.2
2935 hooks :
3036 - id : mypy
3137 exclude : tests|_throttler.pyi
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ def test_evented_model_with_property_setters_events():
568568
569569def test_non_setter_with_dependencies () -> None :
570570 with pytest .raises (
571- ValueError , match = "Fields with dependencies must be fields or property.setters"
571+ ValueError , match = r "Fields with dependencies must be fields or property.setters"
572572 ):
573573
574574 class M (EventedModel ):
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def test_bad_siggroup_descriptor_init():
400400
401401 with pytest .raises (
402402 ValueError ,
403- match = "Cannot use SignalGroup with `collect_fields=False`." ,
403+ match = r "Cannot use SignalGroup with `collect_fields=False`." ,
404404 ):
405405 SignalGroupDescriptor (collect_fields = False )
406406
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def test_slot_types(type_: str) -> None:
355355 elif type_ == "partial_method_kwarg" :
356356 signal .connect (partial (obj .f_int_int , b = 2 ))
357357 elif type_ == "partial_method_kwarg_bad" :
358- with pytest .raises (ValueError , match = ".*prefer using positional args" ):
358+ with pytest .raises (ValueError , match = r ".*prefer using positional args" ):
359359 signal .connect (partial (obj .f_int_int , a = 2 ))
360360 return
361361
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def test_assert_emitted() -> None:
2020 assert isinstance (tester , pt .SignalTester )
2121
2222 with pytest .raises (
23- AssertionError , match = "Expected 'changed' to have been emitted."
23+ AssertionError , match = r "Expected 'changed' to have been emitted."
2424 ):
2525 with pt .assert_emitted (obj .changed ):
2626 pass
@@ -34,7 +34,7 @@ def test_assert_emitted_once():
3434
3535 with pytest .raises (
3636 AssertionError ,
37- match = "Expected 'changed' to have been emitted once. Emitted 2 times." ,
37+ match = r "Expected 'changed' to have been emitted once. Emitted 2 times." ,
3838 ):
3939 with pt .assert_emitted_once (obj .changed ):
4040 obj .changed .emit ()
@@ -50,14 +50,14 @@ def test_assert_not_emitted() -> None:
5050
5151 with pytest .raises (
5252 AssertionError ,
53- match = "Expected 'changed' to not have been emitted. Emitted once." ,
53+ match = r "Expected 'changed' to not have been emitted. Emitted once." ,
5454 ):
5555 with pt .assert_not_emitted (obj .changed ):
5656 obj .changed .emit ()
5757
5858 with pytest .raises (
5959 AssertionError ,
60- match = "Expected 'changed' to not have been emitted. Emitted 4 times." ,
60+ match = r "Expected 'changed' to not have been emitted. Emitted 4 times." ,
6161 ):
6262 with pt .assert_not_emitted (obj .changed ):
6363 obj .changed .emit ()
You can’t perform that action at this time.
0 commit comments