Skip to content

Commit

Permalink
🔥 Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Apr 30, 2024
1 parent 6ddebfb commit 2e4065e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion backend/src/openarchiefbeheer/accounts/views/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .csrf import csrf_failure
from .csrf import csrf_failure # noqa
1 change: 0 additions & 1 deletion backend/src/openarchiefbeheer/accounts/views/csrf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.conf import settings
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.views.csrf import (
CSRF_FAILURE_TEMPLATE_NAME,
csrf_failure as original_csrf_failure,
Expand Down
6 changes: 4 additions & 2 deletions backend/src/openarchiefbeheer/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
WSGI_APPLICATION = "openarchiefbeheer.wsgi.application"

# Translations
LOCALE_PATHS = (DJANGO_PROJECT_DIR / "conf" / "locale", )
LOCALE_PATHS = (DJANGO_PROJECT_DIR / "conf" / "locale",)

#
# SERVING of static and media files
Expand Down Expand Up @@ -357,7 +357,9 @@
repo = git.Repo(search_parent_directories=True)
try:
GIT_SHA = repo.head.object.hexsha
except ValueError: # on startproject initial runs before any git commits have been made
except (
ValueError
): # on startproject initial runs before any git commits have been made
GIT_SHA = repo.active_branch.name
else:
GIT_SHA = None
Expand Down
4 changes: 2 additions & 2 deletions backend/src/openarchiefbeheer/utils/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import mimetypes
from io import BytesIO
from pathlib import PurePosixPath
from typing import Optional, Tuple
from urllib.parse import ParseResult, urljoin, urlparse
from typing import Tuple
from urllib.parse import urljoin, urlparse

from django.conf import settings
from django.contrib.staticfiles import finders
Expand Down
2 changes: 0 additions & 2 deletions backend/src/openarchiefbeheer/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

from openarchiefbeheer.setup import setup_env
Expand Down

0 comments on commit 2e4065e

Please sign in to comment.