From 6baaa095bebbe36c359cd4d9b90b56609b620a5e Mon Sep 17 00:00:00 2001 From: Jonas Lundberg Date: Tue, 2 Apr 2024 19:41:58 +0200 Subject: [PATCH] Upgrade pre-commit repos --- .pre-commit-config.yaml | 16 ++++++++-------- respx/plugin.py | 2 +- tests/conftest.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b139b8a..f3b6cbb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3.11 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -13,14 +13,14 @@ repos: - id: debug-statements - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: v3.4.0 + rev: v3.15.2 hooks: - id: pyupgrade args: - --py37-plus - --keep-runtime-typing - repo: https://github.com/pycqa/autoflake - rev: v2.1.1 + rev: v2.3.1 hooks: - id: autoflake args: @@ -28,7 +28,7 @@ repos: - --remove-all-unused-imports - --ignore-init-module-imports - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black @@ -36,7 +36,7 @@ repos: hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: @@ -47,11 +47,11 @@ repos: - flake8-pytest-style - flake8-datetimez - repo: https://github.com/sirosen/check-jsonschema - rev: 0.23.0 + rev: 0.28.1 hooks: - id: check-github-workflows - repo: https://github.com/asottile/yesqa - rev: v1.4.0 + rev: v1.5.0 hooks: - id: yesqa additional_dependencies: @@ -62,7 +62,7 @@ repos: - flake8-pytest-style - flake8-datetimez - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.9-for-vscode" + rev: "v4.0.0-alpha.8" hooks: - id: prettier alias: format-markdown diff --git a/respx/plugin.py b/respx/plugin.py index e5c78c6..9c39660 100644 --- a/respx/plugin.py +++ b/respx/plugin.py @@ -16,7 +16,7 @@ def pytest_configure(config): ) -@pytest.fixture() +@pytest.fixture def respx_mock(request): respx_marker = request.node.get_closest_marker("respx") diff --git a/tests/conftest.py b/tests/conftest.py index 766680b..47b3fcb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,13 +7,13 @@ pytest_plugins = ["pytester"] -@pytest.fixture() +@pytest.fixture async def client(): async with httpx.AsyncClient() as client: yield client -@pytest.fixture() +@pytest.fixture async def my_mock(): async with respx.mock( base_url="https://httpx.mock", using="httpcore"