Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #52

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 # 0.7 does not support Python 3.7
rev: 2024.10.1 # 0.7 does not support Python 3.7
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: 3 additions & 2 deletions pytest_aiohttp/plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import warnings
from typing import Any, Awaitable, Callable, Dict, Generator, Optional, Type, Union
from collections.abc import Awaitable, Generator
from typing import Any, Callable, Dict, Optional, Type, Union

import pytest
import pytest_asyncio
Expand Down Expand Up @@ -160,7 +161,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
Loading