From b39b114e30b1bc886c7f0073e21eb2e04161deab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 14 Jul 2024 20:55:22 +0200 Subject: [PATCH] pre-commit autoupdate --- .pre-commit-config.yaml | 6 +++--- src/project/static/css/dark-style.css | 2 +- src/project/static/css/style.css | 2 +- src/project/templates/account/email.html | 2 +- src/project/templates/base.html | 2 +- src/project/urls.py | 1 + src/project/wsgi.py | 1 + 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc9fe36..84cb500 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,21 +16,21 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.4.4' + rev: 'v0.5.2' hooks: - id: ruff args: - --fix - id: ruff-format - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.16.0 hooks: - id: pyupgrade args: - --py311-plus exclude: migrations/ - repo: https://github.com/adamchainz/django-upgrade - rev: 1.17.0 + rev: 1.19.0 hooks: - id: django-upgrade args: diff --git a/src/project/static/css/dark-style.css b/src/project/static/css/dark-style.css index 7f48771..ebafa9b 100644 --- a/src/project/static/css/dark-style.css +++ b/src/project/static/css/dark-style.css @@ -64,4 +64,4 @@ html.dark input[type="email"] { background: var(--dark-dark); width: 100%; color: var(--light-dust); -} \ No newline at end of file +} diff --git a/src/project/static/css/style.css b/src/project/static/css/style.css index 17f12e2..d71a430 100644 --- a/src/project/static/css/style.css +++ b/src/project/static/css/style.css @@ -556,4 +556,4 @@ span.time_remaining { .pagination .page-item.disabled .page-link { cursor: default; -} \ No newline at end of file +} diff --git a/src/project/templates/account/email.html b/src/project/templates/account/email.html index ec996ca..7900a34 100644 --- a/src/project/templates/account/email.html +++ b/src/project/templates/account/email.html @@ -110,7 +110,7 @@ addEmail.addEventListener('click', function(e) { e.preventDefault(); - let overlay = document.getElementById('email-add-overlay') + let overlay = document.getElementById('email-add-overlay') overlay.style.display = 'flex' window.addEventListener('keydown', function(e) { diff --git a/src/project/templates/base.html b/src/project/templates/base.html index 5f31cd9..485fbdf 100644 --- a/src/project/templates/base.html +++ b/src/project/templates/base.html @@ -113,7 +113,7 @@ themeSwitcher.addEventListener('click', function() { themeSwitcher.classList.toggle('active') let isDark = document.querySelector('html').classList.toggle('dark'); - + localStorage.setItem('theme', isDark ? 'dark' : 'light'); }); diff --git a/src/project/urls.py b/src/project/urls.py index 8de19c6..c68d1f5 100644 --- a/src/project/urls.py +++ b/src/project/urls.py @@ -1,4 +1,5 @@ """URLs for the membersystem.""" + from django.conf import settings from django.contrib import admin from django.urls import include diff --git a/src/project/wsgi.py b/src/project/wsgi.py index e4c5320..7d7695f 100644 --- a/src/project/wsgi.py +++ b/src/project/wsgi.py @@ -5,6 +5,7 @@ It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ + import os from django.core.wsgi import get_wsgi_application