pre-commit autoupdate

This commit is contained in:
Víðir Valberg Guðmundsson 2024-07-14 20:55:22 +02:00
parent d31f62ebb4
commit b39b114e30
7 changed files with 9 additions and 7 deletions

View file

@ -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:

View file

@ -64,4 +64,4 @@ html.dark input[type="email"] {
background: var(--dark-dark);
width: 100%;
color: var(--light-dust);
}
}

View file

@ -556,4 +556,4 @@ span.time_remaining {
.pagination .page-item.disabled .page-link {
cursor: default;
}
}

View file

@ -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) {

View file

@ -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');
});
</script>

View file

@ -1,4 +1,5 @@
"""URLs for the membersystem."""
from django.conf import settings
from django.contrib import admin
from django.urls import include

View file

@ -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