diff --git a/foxnouns/app.py b/foxnouns/app.py index bbc8dde..ef91d71 100644 --- a/foxnouns/app.py +++ b/foxnouns/app.py @@ -5,7 +5,7 @@ from quart_schema import QuartSchema, RequestSchemaValidationError from .blueprints import members_blueprint, users_blueprint from .db.aio import async_session from .db.util import validate_token -from .exceptions import ExpectedError, ErrorCode +from .exceptions import ErrorCode, ExpectedError app = Quart(__name__) app = cors( diff --git a/foxnouns/db/user.py b/foxnouns/db/user.py index 2ef8461..a6dc642 100644 --- a/foxnouns/db/user.py +++ b/foxnouns/db/user.py @@ -1,6 +1,6 @@ import enum from datetime import datetime -from typing import Any, TYPE_CHECKING +from typing import TYPE_CHECKING, Any from sqlalchemy import BigInteger, DateTime, ForeignKey, Integer, Text from sqlalchemy.dialects.postgresql import ARRAY, JSONB diff --git a/pyproject.toml b/pyproject.toml index 3973289..3997b96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,8 @@ cmd = "alembic upgrade head" test = "pytest" lint = "ruff check" format = "ruff format" -"sort-imports" = "ruff check --select I --fix " +"check-imports" = "ruff check --select I" +"sort-imports" = "ruff check --select I --fix" [tool.pytest.ini_options] addopts = ["--import-mode=importlib"]