Skip to content

Commit 3dcf493

Browse files
ci(pre-commit.ci): autoupdate (#389)
* ci(pre-commit.ci): autoupdate updates: - [github.com/adhtruong/mirrors-typos: v1.36.2 → v1.37.2](adhtruong/mirrors-typos@v1.36.2...v1.37.2) - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](astral-sh/ruff-pre-commit@v0.12.11...v0.13.3) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2](pre-commit/mirrors-mypy@v1.17.1...v1.18.2) * fix: update regex patterns in exception messages for better matching --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent daa0af7 commit 3dcf493

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,32 @@ ci:
66
exclude: .asv
77

88
repos:
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

tests/test_evented_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def test_evented_model_with_property_setters_events():
568568

569569
def 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):

tests/test_group_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_psygnal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_testing_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)