Skip to content

Commit 97bd934

Browse files
pre-commit-ci[bot]seifertm
authored andcommitted
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0) - [github.com/asottile/yesqa: v1.4.0 → v1.5.0](asottile/yesqa@v1.4.0...v1.5.0) - [github.com/Zac-HD/shed: 2024.1.1 → 2024.3.1](Zac-HD/shed@2024.1.1...2024.3.1) - [github.com/jumanjihouse/pre-commit-hook-yamlfmt: 0.2.2 → 0.2.3](jumanjihouse/pre-commit-hook-yamlfmt@0.2.2...0.2.3) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.10.1](pre-commit/mirrors-mypy@v1.8.0...v1.10.1) - [github.com/pycqa/flake8: 6.1.0 → 7.1.0](PyCQA/flake8@6.1.0...7.1.0) - [github.com/pre-commit/pygrep-hooks: v1.9.0 → v1.10.0](pre-commit/pygrep-hooks@v1.9.0...v1.10.0) - [github.com/sirosen/check-jsonschema: 0.19.2 → 0.29.0](python-jsonschema/check-jsonschema@0.19.2...0.29.0) [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: Address type error about missing return statement.
1 parent 799c905 commit 97bd934

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.3.0
4+
rev: v4.6.0
55
hooks:
66
- id: check-merge-conflict
77
exclude: rst$
88
- repo: https://github.com/asottile/yesqa
9-
rev: v1.4.0
9+
rev: v1.5.0
1010
hooks:
1111
- id: yesqa
1212
- repo: https://github.com/Zac-HD/shed
13-
rev: 2024.1.1
13+
rev: 2024.3.1
1414
hooks:
1515
- id: shed
1616
args:
@@ -20,12 +20,12 @@ repos:
2020
- markdown
2121
- rst
2222
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
23-
rev: 0.2.2
23+
rev: 0.2.3
2424
hooks:
2525
- id: yamlfmt
2626
args: [--mapping, '2', --sequence, '2', --offset, '0']
2727
- repo: https://github.com/pre-commit/pre-commit-hooks
28-
rev: v4.3.0
28+
rev: v4.6.0
2929
hooks:
3030
- id: trailing-whitespace
3131
- id: end-of-file-fixer
@@ -37,23 +37,23 @@ repos:
3737
- id: check-yaml
3838
- id: debug-statements
3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.8.0
40+
rev: v1.10.1
4141
hooks:
4242
- id: mypy
4343
exclude: ^(docs|tests)/.*
4444
additional_dependencies:
4545
- pytest
4646
- repo: https://github.com/pycqa/flake8
47-
rev: 6.1.0
47+
rev: 7.1.0
4848
hooks:
4949
- id: flake8
5050
language_version: python3
5151
- repo: https://github.com/pre-commit/pygrep-hooks
52-
rev: v1.9.0
52+
rev: v1.10.0
5353
hooks:
5454
- id: python-use-type-annotations
5555
- repo: https://github.com/sirosen/check-jsonschema
56-
rev: 0.19.2
56+
rev: 0.29.0
5757
hooks:
5858
- id: check-github-actions
5959
ci:

docs/source/reference/fixtures/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ when several unused TCP ports are required in a test.
5151
.. code-block:: python
5252
5353
def a_test(unused_tcp_port_factory):
54-
port1, port2 = unused_tcp_port_factory(), unused_tcp_port_factory()
55-
...
54+
_port1, _port2 = unused_tcp_port_factory(), unused_tcp_port_factory()
5655
5756
unused_udp_port and unused_udp_port_factory
5857
===========================================

pytest_asyncio/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ def pytest_pyfunc_call(pyfuncitem: Function) -> Optional[object]:
882882
)
883883
)
884884
yield
885+
return None
885886

886887

887888
def wrap_in_sync(
@@ -946,8 +947,8 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
946947
obj, "is_hypothesis_test", False
947948
):
948949
pytest.fail(
949-
"test function `%r` is using Hypothesis, but pytest-asyncio "
950-
"only works with Hypothesis 3.64.0 or later." % item
950+
f"test function `{item!r}` is using Hypothesis, but pytest-asyncio "
951+
"only works with Hypothesis 3.64.0 or later."
951952
)
952953

953954

0 commit comments

Comments
 (0)