Skip to content

Commit

Permalink
Fix flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Oct 26, 2024
1 parent 6362f3c commit ec3c48f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 28 deletions.
30 changes: 15 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ django-htmx = "^1.18.0"
playwright = "^1.41.2"
pytest = "^7.2.0"
pytest-xdist = "^3.0.2"
flake8 = "^5.0.4"
flake8 = "^7.1.1"
black = "^22.10.0"
isort = "^5.10.1"
pytest-django = "^4.5.2"
Expand Down
3 changes: 0 additions & 3 deletions src/blog/tests.py

This file was deleted.

8 changes: 3 additions & 5 deletions src/core/tests/test_exhibits_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ def test_api_exhibit_lists_multiple_exhibits(self):
for i in range(0, settings.PAGE_SIZE + 1):
marker = Marker.objects.create(owner=self.profile, source=fake_file)
obj = Object.objects.create(owner=self.profile, source=fake_file)
artwork = Artwork.objects.create(
author=self.profile, augmented=obj, marker=marker
) # noqa F841
exhibit = Exhibit.objects.create(
Artwork.objects.create(author=self.profile, augmented=obj, marker=marker)
Exhibit.objects.create(
owner=self.profile, name=f"name_{i}", slug=f"slug_{i}"
) # noqa F841
)
response = self.client.get("/api/v1/exhibits/")
self.assertEqual(response.status_code, 200)

Expand Down
2 changes: 1 addition & 1 deletion src/core/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from core.helpers import handle_upload_image
from core.models import Artwork, Exhibit, Marker, Object
from django.core.paginator import Paginator
from django.http import HttpResponse, HttpResponseRedirect
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.views.decorators.cache import cache_page
Expand Down
2 changes: 0 additions & 2 deletions src/tests/home_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import re

from playwright.sync_api import Page, expect


Expand Down
1 change: 0 additions & 1 deletion src/users/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Any

from django.contrib import admin
from django.contrib.admin.filters import ListFilter
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django.db.models import Count, Q
Expand Down

0 comments on commit ec3c48f

Please sign in to comment.