Skip to content

Commit 1a19b51

Browse files
authored
upd pre-commit-config.yaml (#27)
upd pre-commit-config.yaml
1 parent bd9ad50 commit 1a19b51

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches: ["master"]
77
pull_request:
8-
branches: ["master"]
98

109
permissions:
1110
contents: read

.pre-commit-config.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ ci:
22
autoupdate_schedule: weekly
33
autofix_prs: false
44
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
5-
default_language_version:
6-
python: python3.10
75
repos:
86
- repo: https://github.com/pre-commit/pre-commit-hooks
97
rev: v6.0.0
@@ -20,24 +18,24 @@ repos:
2018
- id: no-commit-to-branch
2119
args: [ --branch, master ]
2220
- repo: https://github.com/pycqa/isort
23-
rev: 6.0.1
21+
rev: 9.0.0a3
2422
hooks:
2523
- id: isort
2624
- repo: https://github.com/asottile/add-trailing-comma
27-
rev: v3.2.0
25+
rev: v4.0.0
2826
hooks:
2927
- id: add-trailing-comma
3028
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: 'v0.12.11'
29+
rev: 'v0.15.14'
3230
hooks:
3331
- id: ruff
3432
args: [ --fix, --exit-non-zero-on-fix ]
3533
- repo: https://github.com/psf/black
36-
rev: 25.1.0
34+
rev: 26.5.1
3735
hooks:
3836
- id: black
3937
- repo: https://github.com/pappasam/toml-sort
40-
rev: v0.24.2
38+
rev: v0.24.4
4139
hooks:
4240
- id: toml-sort
4341
entry: toml-sort

tests/test__decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _f() -> None:
232232
)
233233
def test__decorator__invalid_storage(func: Callable[..., Any], storage: PStorage | PAsyncStorage) -> None:
234234
"""Test that the decorator raises TypeError for invalid storage."""
235-
with pytest.raises(TypeError, match="(Async|Regular) function requires a(n async| sync) storage"):
235+
with pytest.raises(TypeError, match=r"(Async|Regular) function requires a(n async| sync) storage"):
236236
cache(storage=storage)(func)
237237

238238

0 commit comments

Comments
 (0)