1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00

ci: replace super-linter with ruff

Super-linter ran from the unpinned :latest image and, because of
branches-ignore: [master], never on pull requests to master. Ruff now
checks syntax errors and pyflakes rules (E9, F) on every push and PR.

Fixes the existing findings: unused imports and variables, an unused
duplicate import in instances/tests.py, and the star import in
accounts/views.py. settings-dev.py keeps its star import of the base
settings.
This commit is contained in:
catborise 2026-10-03 12:26:00 +03:00
parent a8725ee325
commit b04f656d2b
31 changed files with 37 additions and 114 deletions

View file

@ -128,7 +128,6 @@ class TestReadWriteLock(unittest.TestCase):
def test_writer_blocks_subsequent_readers(self):
"""Pending writers take priority and should block subsequent new readers."""
order = []
lock_held_event = threading.Event()
writer_ready_event = threading.Event()
# Step 1: Initial reader holds read lock

View file

@ -1,4 +1,3 @@
import re
import unittest
from django.conf import settings

View file

@ -290,7 +290,6 @@ class TestPersistentDiskEditing(unittest.TestCase):
)
def test_running_bus_change_preserves_disk_and_pending_domain_configuration(self):
from lxml import etree
self.assertTrue(self.domain.isActive())
live_before = self.domain.XMLDesc(0)
self.edit(bus="sata")

View file

@ -6,7 +6,7 @@ import string
import libvirt
import lxml.etree as etree
from django.conf import UserSettingsHolder, settings
from django.conf import settings
def is_kvm_available(xml):