diff --git a/pyproject.toml b/pyproject.toml index 63d0fd8e..e81faa07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,7 +123,7 @@ pythonpath = [ [tool.ruff] -line-length = 120 +line-length = 80 target-version = 'py311' fix = true show-fixes = true diff --git a/src/NanoVNASaver/Windows/ui/__init__.py b/src/NanoVNASaver/Windows/ui/__init__.py index 406277c2..4294d75a 100644 --- a/src/NanoVNASaver/Windows/ui/__init__.py +++ b/src/NanoVNASaver/Windows/ui/__init__.py @@ -14,8 +14,8 @@ def get_window_icon() -> QIcon: __all__ = [ - "qInitResources", - "Ui_DialogAbout", "WINDOW_ICON_RES", + "Ui_DialogAbout", "get_window_icon", + "qInitResources", ] diff --git a/src/NanoVNASaver/Windows/ui/about.py b/src/NanoVNASaver/Windows/ui/about.py index 16270efd..862d5ce6 100644 --- a/src/NanoVNASaver/Windows/ui/about.py +++ b/src/NanoVNASaver/Windows/ui/about.py @@ -8,17 +8,18 @@ ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, - QMetaObject, QObject, QPoint, QRect, - QSize, QTime, QUrl, Qt) -from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, - QFont, QFontDatabase, QGradient, QIcon, - QImage, QKeySequence, QLinearGradient, QPainter, - QPalette, QPixmap, QRadialGradient, QTransform) -from PySide6.QtWidgets import (QApplication, QDialog, QFrame, QHBoxLayout, - QLabel, QPushButton, QSizePolicy, QTextEdit, - QVBoxLayout, QWidget) -from . import main_rc +from PySide6.QtCore import QCoreApplication, QMetaObject, QSize, Qt +from PySide6.QtGui import QIcon, QPixmap +from PySide6.QtWidgets import ( + QFrame, + QHBoxLayout, + QLabel, + QPushButton, + QSizePolicy, + QTextEdit, + QVBoxLayout, +) + class Ui_DialogAbout(object): def setupUi(self, DialogAbout): diff --git a/uv.lock b/uv.lock index 97973d17..d99111a3 100644 --- a/uv.lock +++ b/uv.lock @@ -230,7 +230,7 @@ wheels = [ [[package]] name = "nanovnasaver" -version = "0.6.8.post1.dev19+gcead804.d20250201" +version = "0.6.8.post1.dev23+g1f3cd68.d20250203" source = { editable = "." } dependencies = [ { name = "numpy" },