Update Ruff and fix its errors

This commit is contained in:
Joakim Hellsén 2026-07-21 04:12:13 +02:00
commit 1424978854
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
39 changed files with 183 additions and 175 deletions

View file

@ -13,7 +13,7 @@ def main() -> None:
"""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
try:
from django.core.management import execute_from_command_line # noqa: PLC0415
from django.core.management import execute_from_command_line # ruff:ignore[import-outside-top-level, unsorted-imports]
except ImportError as exc:
msg = (
"Couldn't import Django. Are you sure it's installed and "