Skip to content

Commit 1206cc4

Browse files
[pre-commit.ci] pre-commit autoupdate (#58)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.4.0...v5.0.0) - [github.com/Zac-HD/shed: 2023.6.1 → 2024.10.1](Zac-HD/shed@2023.6.1...2024.10.1) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.4.0...v5.0.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.1.1](PyCQA/flake8@6.1.0...7.1.1) - [github.com/python-jsonschema/check-jsonschema: 0.26.3 → 0.29.4](python-jsonschema/check-jsonschema@0.26.3...0.29.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8887bfa commit 1206cc4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.4.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-merge-conflict
77
exclude: rst$
@@ -10,7 +10,7 @@ repos:
1010
hooks:
1111
- id: yesqa
1212
- repo: https://github.com/Zac-HD/shed
13-
rev: 2023.6.1
13+
rev: 2024.10.1
1414
hooks:
1515
- id: shed
1616
args:
@@ -25,7 +25,7 @@ repos:
2525
- id: yamlfmt
2626
args: [--mapping, '2', --sequence, '2', --offset, '0']
2727
- repo: https://github.com/pre-commit/pre-commit-hooks
28-
rev: v4.4.0
28+
rev: v5.0.0
2929
hooks:
3030
- id: trailing-whitespace
3131
- id: end-of-file-fixer
@@ -37,7 +37,7 @@ repos:
3737
- id: check-yaml
3838
- id: debug-statements
3939
- repo: https://github.com/PyCQA/flake8
40-
rev: 6.1.0
40+
rev: 7.1.1
4141
hooks:
4242
- id: flake8
4343
language_version: python3
@@ -46,7 +46,7 @@ repos:
4646
hooks:
4747
- id: python-use-type-annotations
4848
- repo: https://github.com/python-jsonschema/check-jsonschema
49-
rev: 0.26.3
49+
rev: 0.29.4
5050
hooks:
5151
- id: check-github-actions
5252
- id: check-github-workflows

pytest_aiohttp/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
from collections.abc import Awaitable, Iterator
12
from typing import (
23
Any,
3-
Awaitable,
44
Dict,
5-
Iterator,
65
Optional,
76
Protocol,
87
Type,
@@ -191,7 +190,7 @@ async def go(
191190
elif isinstance(__param, BaseTestServer):
192191
client = aiohttp_client_cls(__param, **kwargs)
193192
else:
194-
raise ValueError("Unknown argument type: %r" % type(__param))
193+
raise ValueError(f"Unknown argument type: {type(__param)!r}")
195194

196195
await client.start_server()
197196
clients.append(client)

0 commit comments

Comments
 (0)