Skip to content

Commit

Permalink
Resolving the Ruff Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensWe committed Jun 6, 2024
1 parent 75a3f0e commit 2cdeb8c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tad/migrations/env.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
from logging.config import fileConfig

from alembic import context
from sqlalchemy import engine_from_config, pool
from sqlmodel import SQLModel
from tad.models import * # noqa

from alembic import context

config = context.config

if config.config_file_name is not None:
Expand Down Expand Up @@ -58,7 +57,7 @@ def run_migrations_online():
"""
configuration = config.get_section(config.config_ini_section)
if configuration is None:
raise Exception("Failed to get configuration section") # noqa: TRY002
raise Exception("Failed to get configuration section") # noqa: TRY003, TRY002

Check failure on line 60 in tad/migrations/env.py

View workflow job for this annotation

GitHub Actions / lint

Ruff (RUF100)

tad/migrations/env.py:60:65: RUF100 Unused `noqa` directive (non-enabled: `TRY003`)
configuration["sqlalchemy.url"] = get_url()
connectable = engine_from_config(
configuration,
Expand Down
1 change: 0 additions & 1 deletion tad/migrations/versions/006c480a1920_a_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import sqlalchemy as sa
import sqlmodel.sql.sqltypes

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
1 change: 0 additions & 1 deletion tad/migrations/versions/eb2eed884ae9_a_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import sqlalchemy as sa
import sqlmodel.sql.sqltypes

from alembic import op

# revision identifiers, used by Alembic.
Expand Down

0 comments on commit 2cdeb8c

Please sign in to comment.