Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#58)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Nov 6, 2024
1 parent 8887bfa commit 1206cc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
exclude: rst$
Expand All @@ -10,7 +10,7 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/Zac-HD/shed
rev: 2023.6.1
rev: 2024.10.1
hooks:
- id: shed
args:
Expand All @@ -25,7 +25,7 @@ repos:
- id: yamlfmt
args: [--mapping, '2', --sequence, '2', --offset, '0']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -37,7 +37,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
language_version: python3
Expand All @@ -46,7 +46,7 @@ repos:
hooks:
- id: python-use-type-annotations
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
rev: 0.29.4
hooks:
- id: check-github-actions
- id: check-github-workflows
Expand Down
5 changes: 2 additions & 3 deletions pytest_aiohttp/plugin.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from collections.abc import Awaitable, Iterator
from typing import (
Any,
Awaitable,
Dict,
Iterator,
Optional,
Protocol,
Type,
Expand Down Expand Up @@ -191,7 +190,7 @@ async def go(
elif isinstance(__param, BaseTestServer):
client = aiohttp_client_cls(__param, **kwargs)
else:
raise ValueError("Unknown argument type: %r" % type(__param))
raise ValueError(f"Unknown argument type: {type(__param)!r}")

await client.start_server()
clients.append(client)
Expand Down

0 comments on commit 1206cc4

Please sign in to comment.