Skip to content

Commit

Permalink
[chore] Updated shed pre-commit hook to v2024.1.1.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
  • Loading branch information
seifertm committed Jan 28, 2024
1 parent a309bc5 commit b879130
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -10,7 +10,7 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/Zac-HD/shed
rev: 0.10.7
rev: 2024.1.1
hooks:
- id: shed
args:
Expand Down
1 change: 1 addition & 0 deletions pytest_asyncio/__init__.py
@@ -1,4 +1,5 @@
"""The main point for importing pytest-asyncio items."""

from ._version import version as __version__ # noqa
from .plugin import fixture, is_async_test

Expand Down
13 changes: 6 additions & 7 deletions pytest_asyncio/plugin.py
@@ -1,4 +1,5 @@
"""pytest-asyncio implementation."""

import asyncio
import contextlib
import enum
Expand Down Expand Up @@ -115,8 +116,7 @@ def fixture(
None,
] = ...,
name: Optional[str] = ...,
) -> FixtureFunction:
...
) -> FixtureFunction: ...


@overload
Expand All @@ -132,8 +132,7 @@ def fixture(
None,
] = ...,
name: Optional[str] = None,
) -> FixtureFunctionMarker:
...
) -> FixtureFunctionMarker: ...


def fixture(
Expand Down Expand Up @@ -720,9 +719,9 @@ def pytest_generate_tests(metafunc: Metafunc) -> None:
# The fixture needs to be appended to avoid messing up the fixture evaluation
# order
metafunc.fixturenames.append(event_loop_fixture_id)
metafunc._arg2fixturedefs[
event_loop_fixture_id
] = fixturemanager._arg2fixturedefs[event_loop_fixture_id]
metafunc._arg2fixturedefs[event_loop_fixture_id] = (
fixturemanager._arg2fixturedefs[event_loop_fixture_id]
)


@pytest.hookimpl(hookwrapper=True)
Expand Down
1 change: 1 addition & 0 deletions tests/async_fixtures/test_async_fixtures_scope.py
Expand Up @@ -2,6 +2,7 @@
We support module-scoped async fixtures, but only if the event loop is
module-scoped too.
"""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/hypothesis/test_base.py
@@ -1,6 +1,7 @@
"""Tests for the Hypothesis integration, which wraps async functions in a
sync shim for Hypothesis.
"""

from textwrap import dedent

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/loop_fixture_scope/test_loop_fixture_scope.py
@@ -1,4 +1,5 @@
"""Unit tests for overriding the event loop with a larger scoped one."""

import asyncio

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/markers/test_class_scope.py
@@ -1,4 +1,5 @@
"""Test if pytestmark works when defined on a class."""

import asyncio
from textwrap import dedent

Expand Down
1 change: 1 addition & 0 deletions tests/test_simple.py
@@ -1,4 +1,5 @@
"""Quick'n'dirty unit tests for provided fixtures and markers."""

import asyncio
from textwrap import dedent

Expand Down
1 change: 1 addition & 0 deletions tests/test_subprocess.py
@@ -1,4 +1,5 @@
"""Tests for using subprocesses in tests."""

import asyncio.subprocess
import sys

Expand Down

0 comments on commit b879130

Please sign in to comment.