added ruff test

This commit is contained in:
ykcheungab
2026-09-27 19:20:43 +08:00
parent bcab2790bf
commit fa2703968e
178 changed files with 3277 additions and 1034 deletions
+3 -5
View File
@@ -21,7 +21,6 @@ from __future__ import annotations
import argparse
import json
import os
import platform
import sys
import time
@@ -43,10 +42,6 @@ def _bootstrap_paths() -> None:
def collect(profile: str, *, keep_open_s: float) -> dict:
"""Create a real window, let Qt initialise it, and report what it got."""
from PySide6.QtCore import QTimer
from PySide6.QtOpenGLWidgets import QOpenGLWidget
from PySide6.QtWidgets import QApplication
from orisys_studio.scene3d.gl_backend import (
GLDispatch,
GLRenderer,
@@ -54,6 +49,9 @@ def collect(profile: str, *, keep_open_s: float) -> dict:
configure_surface_format,
lut_rgba,
)
from PySide6.QtCore import QTimer
from PySide6.QtOpenGLWidgets import QOpenGLWidget
from PySide6.QtWidgets import QApplication
configure_surface_format(profile) # type: ignore[arg-type]
app = QApplication.instance() or QApplication(sys.argv)