chore: sort imports

This commit is contained in:
sam 2024-03-26 19:49:30 +01:00
parent da87b4e273
commit 0c52ebb7bc
3 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,7 @@ from quart_schema import QuartSchema, RequestSchemaValidationError
from .blueprints import members_blueprint, users_blueprint from .blueprints import members_blueprint, users_blueprint
from .db.aio import async_session from .db.aio import async_session
from .db.util import validate_token from .db.util import validate_token
from .exceptions import ExpectedError, ErrorCode from .exceptions import ErrorCode, ExpectedError
app = Quart(__name__) app = Quart(__name__)
app = cors( app = cors(

View file

@ -1,6 +1,6 @@
import enum import enum
from datetime import datetime 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 import BigInteger, DateTime, ForeignKey, Integer, Text
from sqlalchemy.dialects.postgresql import ARRAY, JSONB from sqlalchemy.dialects.postgresql import ARRAY, JSONB

View file

@ -53,6 +53,7 @@ cmd = "alembic upgrade head"
test = "pytest" test = "pytest"
lint = "ruff check" lint = "ruff check"
format = "ruff format" format = "ruff format"
"check-imports" = "ruff check --select I"
"sort-imports" = "ruff check --select I --fix" "sort-imports" = "ruff check --select I --fix"
[tool.pytest.ini_options] [tool.pytest.ini_options]