chore: clear linting errors

This commit is contained in:
aclist committed 2025-12-19 20:26:07 +09:00
1 parent d5e54c0488
commit 730e108cea
3 files changed
+5 -3

No files matched your search

-1
View File
@@ -10,7 +10,6 @@ import dzgui.api.pefile as PeFile
from dzgui.api.servers import Record, get_rules from dzgui.api.servers import Record, get_rules
from dzgui.const.constants import ( from dzgui.const.constants import (
APPID_DAYZ, APPID_DAYZ,
APPID_DAYZ_EXP,
LIBRARYFOLDERS_PATH, LIBRARYFOLDERS_PATH,
WORKSHOP_PATH, WORKSHOP_PATH,
) )
-1
View File
@@ -9,7 +9,6 @@ from dzgui.config.ipdb import get_ipdb
from dzgui.config.userprefs import UserPrefs from dzgui.config.userprefs import UserPrefs
from dzgui.config.xdg import get_xdg_paths, parse_filepaths from dzgui.config.xdg import get_xdg_paths, parse_filepaths
from dzgui.const.constants import APP_NAME_LOWER
from dzgui.const.update import ALLOW_UPDATES from dzgui.const.update import ALLOW_UPDATES
from dzgui.init.coords import get_local_coords from dzgui.init.coords import get_local_coords
+5 -1
View File
@@ -1,3 +1,5 @@
import logging
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from importlib import resources from importlib import resources
@@ -8,6 +10,8 @@ import gi
gi.require_version("Gtk", "3.0") gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa E402 from gi.repository import Gtk # noqa E402
logger = logging.getLogger(__name__)
if TYPE_CHECKING: if TYPE_CHECKING:
from dzgui.controllers.mc import Controller from dzgui.controllers.mc import Controller
@@ -19,7 +23,7 @@ class Changelog(Gtk.Box):
try: try:
changelog = resources.read_text(APP_NAME_LOWER, "data/CHANGELOG.md") changelog = resources.read_text(APP_NAME_LOWER, "data/CHANGELOG.md")
except OSError as e: except OSError as e:
# TODO: log error logger.critical(e)
changelog = "Error: Failed to read changelog" changelog = "Error: Failed to read changelog"
# TODO: should long text be wrapped? # TODO: should long text be wrapped?