Unify the way the imports work #9

Merged
alexander merged 21 commits from unify-imports into develop 2026-11-30 20:30:54 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit de5e49b497 - Show all commits

Import alembic.config as alembic_config

Alexander Hess 2026-11-30 20:13:46 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -545,6 +545,7 @@ banned-from = [
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"alembic.command" = "alembic_cmd"
"alembic.config" = "alembic_config"
"click.core" = "cli_core"
"click.testing" = "cli_testing"
"collections.abc" = "cabc"

View file

@ -9,7 +9,7 @@ import os
import pytest
import sqlalchemy as sa
from alembic import command as alembic_cmd
from alembic import config as migrations_config
from alembic import config as alembic_config
from sqlalchemy import orm
from velofy import config
@ -59,7 +59,7 @@ def db_connection(request):
connection.execute(sa.text(f"CREATE SCHEMA {config.CLEAN_SCHEMA};"))
db.Base.metadata.create_all(connection)
else:
cfg = migrations_config.Config("alembic.ini")
cfg = alembic_config.Config("alembic.ini")
alembic_cmd.upgrade(cfg, "head")
try: