Skip to content

Commit b879130

Browse files
committed
[chore] Updated shed pre-commit hook to v2024.1.1.
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
1 parent a309bc5 commit b879130

File tree

9 files changed

+14
-8
lines changed

9 files changed

+14
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
hooks:
1111
- id: yesqa
1212
- repo: https://github.com/Zac-HD/shed
13-
rev: 0.10.7
13+
rev: 2024.1.1
1414
hooks:
1515
- id: shed
1616
args:

pytest_asyncio/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The main point for importing pytest-asyncio items."""
2+
23
from ._version import version as __version__ # noqa
34
from .plugin import fixture, is_async_test
45

pytest_asyncio/plugin.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-asyncio implementation."""
2+
23
import asyncio
34
import contextlib
45
import enum
@@ -115,8 +116,7 @@ def fixture(
115116
None,
116117
] = ...,
117118
name: Optional[str] = ...,
118-
) -> FixtureFunction:
119-
...
119+
) -> FixtureFunction: ...
120120

121121

122122
@overload
@@ -132,8 +132,7 @@ def fixture(
132132
None,
133133
] = ...,
134134
name: Optional[str] = None,
135-
) -> FixtureFunctionMarker:
136-
...
135+
) -> FixtureFunctionMarker: ...
137136

138137

139138
def fixture(
@@ -720,9 +719,9 @@ def pytest_generate_tests(metafunc: Metafunc) -> None:
720719
# The fixture needs to be appended to avoid messing up the fixture evaluation
721720
# order
722721
metafunc.fixturenames.append(event_loop_fixture_id)
723-
metafunc._arg2fixturedefs[
724-
event_loop_fixture_id
725-
] = fixturemanager._arg2fixturedefs[event_loop_fixture_id]
722+
metafunc._arg2fixturedefs[event_loop_fixture_id] = (
723+
fixturemanager._arg2fixturedefs[event_loop_fixture_id]
724+
)
726725

727726

728727
@pytest.hookimpl(hookwrapper=True)

tests/async_fixtures/test_async_fixtures_scope.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
We support module-scoped async fixtures, but only if the event loop is
33
module-scoped too.
44
"""
5+
56
import asyncio
67

78
import pytest

tests/hypothesis/test_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for the Hypothesis integration, which wraps async functions in a
22
sync shim for Hypothesis.
33
"""
4+
45
from textwrap import dedent
56

67
import pytest

tests/loop_fixture_scope/test_loop_fixture_scope.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for overriding the event loop with a larger scoped one."""
2+
23
import asyncio
34

45
import pytest

tests/markers/test_class_scope.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test if pytestmark works when defined on a class."""
2+
23
import asyncio
34
from textwrap import dedent
45

tests/test_simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Quick'n'dirty unit tests for provided fixtures and markers."""
2+
23
import asyncio
34
from textwrap import dedent
45

tests/test_subprocess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for using subprocesses in tests."""
2+
23
import asyncio.subprocess
34
import sys
45

0 commit comments

Comments
 (0)