fix python linter errors

This commit is contained in:
rash
2026-03-13 16:58:24 +01:00
parent c62a6359e1
commit d794738b8f
3 changed files with 25 additions and 16 deletions

View File

@@ -6,13 +6,15 @@
It runs the local frontend server, if node is installed and the setting
is set.
"""
import os
import atexit
import os
import subprocess
from pathlib import Path
from django.conf import settings
from django.contrib.staticfiles.management.commands.runserver import Command as Parent
from django.contrib.staticfiles.management.commands.runserver import (
Command as Parent,
)
from django.utils.autoreload import DJANGO_AUTORELOAD_ENV
@@ -32,7 +34,7 @@ class Command(Parent):
vite_server.wait(timeout=5)
except subprocess.TimeoutExpired:
vite_server.kill()
atexit.register(cleanup)
super().handle(*args, **options)