From 433e40b3a299a1d9982b341e4c398d66f7c0ff01 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 1 Aug 2022 15:56:28 +0200 Subject: [PATCH] Fix lint issues --- .../core/management/commands/write_webpack_entrypoints.py | 4 ++-- aleksis/core/schema.py | 6 +++--- aleksis/core/views.py | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/aleksis/core/management/commands/write_webpack_entrypoints.py b/aleksis/core/management/commands/write_webpack_entrypoints.py index 80b18548b..130f2158f 100644 --- a/aleksis/core/management/commands/write_webpack_entrypoints.py +++ b/aleksis/core/management/commands/write_webpack_entrypoints.py @@ -2,13 +2,13 @@ import json import os from django.conf import settings -from django.core.management.base import BaseCommand, CommandError +from django.core.management.base import BaseCommand from ...util.frontend_helpers import get_apps_with_assets class Command(BaseCommand): - help = "Write out webpack entrypoints for all apps" + help = "Write out webpack entrypoints for all apps" # noqa def handle(self, *args, **options): assets = { diff --git a/aleksis/core/schema.py b/aleksis/core/schema.py index c299b688d..7e637aa20 100644 --- a/aleksis/core/schema.py +++ b/aleksis/core/schema.py @@ -36,12 +36,12 @@ class PersonMutation(DjangoModelFormMutation): class MarkNotificationReadMutation(graphene.Mutation): class Arguments: - id = graphene.ID() + id = graphene.ID() # noqa notification = graphene.Field(NotificationType) @classmethod - def mutate(cls, root, info, id): + def mutate(cls, root, info, id): # noqa notification = Notification.objects.get(pk=id) # FIXME permissions notification.read = True @@ -67,7 +67,7 @@ class Query(graphene.ObjectType): # FIXME do permission stuff return Person.objects.all() - def resolve_person_by_id(root, info, id): + def resolve_person_by_id(root, info, id): # noqa return Person.objects.get(pk=id) def resolve_who_am_i(root, info, **kwargs): diff --git a/aleksis/core/views.py b/aleksis/core/views.py index bf7a66c19..01350da64 100644 --- a/aleksis/core/views.py +++ b/aleksis/core/views.py @@ -99,7 +99,6 @@ from .models import ( DummyPerson, Group, GroupType, - Notification, OAuthApplication, PDFFile, Person, -- GitLab