diff --git a/app/api/helpers/ticketing.py b/app/api/helpers/ticketing.py index 2253f50220..f7c78a4c30 100644 --- a/app/api/helpers/ticketing.py +++ b/app/api/helpers/ticketing.py @@ -16,7 +16,6 @@ ) from app.api.helpers.payment import PayPalPaymentsManager, StripePaymentsManager from app.models import db -from app.models.order import Order from app.models.ticket_fee import TicketFees from app.models.ticket_holder import TicketHolder diff --git a/app/instance.py b/app/instance.py index 56d8b6fb72..daf98a3753 100644 --- a/app/instance.py +++ b/app/instance.py @@ -17,25 +17,19 @@ from flask_rest_jsonapi.errors import jsonapi_errors from flask_rest_jsonapi.exceptions import JsonApiException from healthcheck import HealthCheck -from pytz import utc from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.flask import FlaskIntegration from sentry_sdk.integrations.redis import RedisIntegration from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration from werkzeug.middleware.profiler import ProfilerMiddleware - -from app.api import routes from app.api.helpers.auth import AuthManager, is_token_blacklisted from app.api.helpers.cache import cache from app.api.helpers.jwt import jwt_user_loader from app.extensions import limiter, shell from app.models import db -from app.models.event import Event -from app.models.role_invite import RoleInvite from app.models.utils import add_engine_pidguard, sqlite_datetime_fix from app.templates.flask_ext.jinja.filters import init_filters from app.views.blueprints import BlueprintsManager -from app.views.elastic_search import client from app.views.healthcheck import ( check_migrations, health_check_celery, diff --git a/app/models/helpers/versioning.py b/app/models/helpers/versioning.py index e2cfd12787..95eb1d69be 100644 --- a/app/models/helpers/versioning.py +++ b/app/models/helpers/versioning.py @@ -1,9 +1,6 @@ import re -import unicodedata -from itertools import zip_longest import bleach -import diff_match_patch from bleach.callbacks import nofollow, target_blank diff --git a/populate_db.py b/populate_db.py index 9b9f4c8039..38f2b2b17a 100644 --- a/populate_db.py +++ b/populate_db.py @@ -1,4 +1,3 @@ -from envparse import env from app.api.helpers.db import get_or_create diff --git a/tests/hook_main.py b/tests/hook_main.py index b56cff5f49..7074a976e1 100644 --- a/tests/hook_main.py +++ b/tests/hook_main.py @@ -12,9 +12,6 @@ from flask import Flask from app.models import db from app.models.user import OWNER -from app.models.user_token_blacklist import ( - UserTokenBlackListTime, -) # noqa Workaround for registering unimported model from app.api import routes # noqa Workaround for importing all required models # imports from factories