diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a208a5..b870604 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.13.0 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.18.1 hooks: - id: mypy additional_dependencies: 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")