Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions src/asphalt/mongodb/_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Loading