Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent 76972dc commit f9892eb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions examples/csvimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
import logging
from pathlib import Path

from sqlalchemy.orm import Session
from sqlalchemy.sql.schema import Column, MetaData, Table
from sqlalchemy.sql.sqltypes import Integer, Unicode

from asphalt.core import (
CLIApplicationComponent,
Context,
inject,
resource,
run_application,
)
from sqlalchemy.orm import Session
from sqlalchemy.sql.schema import Column, MetaData, Table
from sqlalchemy.sql.sqltypes import Integer, Unicode

logger = logging.getLogger(__name__)
metadata = MetaData()
Expand Down
3 changes: 2 additions & 1 deletion examples/csvimport_orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
import logging
from pathlib import Path

from sqlalchemy.orm import DeclarativeBase, Mapped, Session, mapped_column

from asphalt.core import (
CLIApplicationComponent,
Context,
inject,
resource,
run_application,
)
from sqlalchemy.orm import DeclarativeBase, Mapped, Session, mapped_column

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion src/asphalt/sqlalchemy/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
qualified_name,
resolve_reference,
)

from asphalt.sqlalchemy.utils import apply_sqlite_hacks
from sqlalchemy.engine import Connection, Engine, create_engine
from sqlalchemy.engine.url import URL, make_url
Expand Down
4 changes: 2 additions & 2 deletions tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from typing import Any

import pytest
from asphalt.core import NoCurrentContext, current_context
from asphalt.core.context import Context, get_resource
from pytest import FixtureRequest
from sqlalchemy.engine.url import URL
from sqlalchemy.event import listen, remove
Expand All @@ -23,6 +21,8 @@
from sqlalchemy.pool import AsyncAdaptedQueuePool, NullPool, QueuePool
from sqlalchemy.sql import text

from asphalt.core import NoCurrentContext, current_context
from asphalt.core.context import Context, get_resource
from asphalt.sqlalchemy.component import SQLAlchemyComponent
from asphalt.sqlalchemy.utils import clear_async_database, clear_database

Expand Down
2 changes: 1 addition & 1 deletion tests/test_testing_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from typing import Any

import pytest
from asphalt.core import ContainerComponent, Context
from sqlalchemy.engine import Connection, Engine
from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.asyncio import AsyncConnection, AsyncEngine, AsyncSession
from sqlalchemy.orm import Session
from sqlalchemy.sql.expression import delete, func, select

from asphalt.core import ContainerComponent, Context
from asphalt.sqlalchemy.utils import clear_async_database, clear_database

from .model import Base, Person
Expand Down

0 comments on commit f9892eb

Please sign in to comment.