diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74bd1516..c25b29a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,10 +22,10 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/timothycrosley/isort - rev: 5.12.0 - hooks: - - id: isort +# - repo: https://github.com/timothycrosley/isort +# rev: 5.12.0 +# hooks: +# - id: isort - repo: https://github.com/ambv/black rev: 23.9.1 diff --git a/auth/identity.py b/auth/identity.py index 2db9772a..cc1bf3c8 100644 --- a/auth/identity.py +++ b/auth/identity.py @@ -7,6 +7,7 @@ from sqlalchemy import or_ from auth.jwtcodec import JWTCodec from auth.tokenstorage import TokenStorage + # from base.exceptions import InvalidPassword, InvalidToken from base.orm import local_session from orm import User diff --git a/main.py b/main.py index d3af4224..3f839ab5 100644 --- a/main.py +++ b/main.py @@ -22,6 +22,7 @@ from services.main import storages_init from services.notifications.notification_service import notification_service from services.notifications.sse import sse_subscribe_handler from services.stat.viewed import ViewedStorage + # from services.zine.gittask import GitTask from settings import DEV_SERVER_PID_FILE_NAME, SENTRY_DSN, SESSION_SECRET_KEY diff --git a/resolvers/auth.py b/resolvers/auth.py index 3e66ef3b..c28898e3 100644 --- a/resolvers/auth.py +++ b/resolvers/auth.py @@ -14,7 +14,13 @@ from auth.email import send_auth_email from auth.identity import Identity, Password from auth.jwtcodec import JWTCodec from auth.tokenstorage import TokenStorage -from base.exceptions import BaseHttpException, InvalidPassword, InvalidToken, ObjectNotExist, Unauthorized +from base.exceptions import ( + BaseHttpException, + InvalidPassword, + InvalidToken, + ObjectNotExist, + Unauthorized, +) from base.orm import local_session from base.resolvers import mutation, query from orm import Role, User diff --git a/resolvers/zine/following.py b/resolvers/zine/following.py index 9f08848e..24935d5e 100644 --- a/resolvers/zine/following.py +++ b/resolvers/zine/following.py @@ -8,6 +8,7 @@ from base.orm import local_session from base.resolvers import mutation from orm.shout import ShoutReactionsFollower from orm.topic import TopicFollower + # from resolvers.community import community_follow, community_unfollow from orm.user import AuthorFollower from resolvers.zine.profile import author_follow, author_unfollow