From ea1599a44df79fbcf3fb0ec1b889c7a4369fd774 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 20:11:53 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.15.16](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.5...v0.15.16) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v2.1.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a208a5..d4f4583 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ # * Run "pre-commit install". repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-toml - id: check-yaml @@ -16,14 +16,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 + rev: v0.15.16 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v2.1.0 hooks: - id: mypy additional_dependencies: From 70239371f3330d13b64758f1a5bf52d9da9dcc23 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 20:12:22 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/asphalt/mongodb/_component.py | 3 +-- tests/test_component.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/asphalt/mongodb/_component.py b/src/asphalt/mongodb/_component.py index 838e4d9..afd9a21 100644 --- a/src/asphalt/mongodb/_component.py +++ b/src/asphalt/mongodb/_component.py @@ -4,9 +4,8 @@ from collections.abc import AsyncGenerator, Mapping from typing import Any -from motor.motor_asyncio import AsyncIOMotorClient - from asphalt.core import Component, Context, context_teardown +from motor.motor_asyncio import AsyncIOMotorClient logger = logging.getLogger("asphalt.mongodb") diff --git a/tests/test_component.py b/tests/test_component.py index 6ca12c7..f85b824 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -2,10 +2,10 @@ import os import pytest +from asphalt.core import Context, require_resource from motor.motor_asyncio import AsyncIOMotorClient from pytest import LogCaptureFixture -from asphalt.core import Context, require_resource from asphalt.mongodb import MongoDBComponent MONGODB_HOSTNAME = os.getenv("MONGODB_HOST", "localhost")