From a118df487df794b818f0a009b2e62e80dfb2660c Mon Sep 17 00:00:00 2001 From: Mark <162816078+markashton480@users.noreply.github.com> Date: Tue, 3 Mar 2026 22:56:38 +0000 Subject: [PATCH] fix(comments): resolve ruff lint errors Remove unused imports (urlencode, F) and fix import sort order in test_v2.py. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- apps/comments/tests/test_v2.py | 1 - apps/comments/views.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/comments/tests/test_v2.py b/apps/comments/tests/test_v2.py index 7862a5f..f68346d 100644 --- a/apps/comments/tests/test_v2.py +++ b/apps/comments/tests/test_v2.py @@ -14,7 +14,6 @@ from apps.blog.models import ArticleIndexPage, ArticlePage from apps.blog.tests.factories import AuthorFactory from apps.comments.models import Comment, CommentReaction - # ── Fixtures ────────────────────────────────────────────────────────────────── diff --git a/apps/comments/views.py b/apps/comments/views.py index 552da5f..ba790c9 100644 --- a/apps/comments/views.py +++ b/apps/comments/views.py @@ -1,7 +1,6 @@ from __future__ import annotations import logging -from urllib.parse import urlencode import requests as http_requests from django.conf import settings @@ -9,7 +8,7 @@ from django.contrib import messages from django.core.cache import cache from django.core.exceptions import ValidationError from django.db import IntegrityError -from django.db.models import F, Prefetch +from django.db.models import Prefetch from django.http import HttpResponse, JsonResponse from django.shortcuts import get_object_or_404, redirect, render from django.views import View