From df2766d80e65e04695dac33367dd5a80e9388902 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:26:38 +0200 Subject: [PATCH] Update linting --- novelwriter/gui/theme.py | 2 +- pyproject.toml | 2 +- utils/common.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/novelwriter/gui/theme.py b/novelwriter/gui/theme.py index b83de9b7..f3a026f1 100644 --- a/novelwriter/gui/theme.py +++ b/novelwriter/gui/theme.py @@ -615,7 +615,7 @@ class GuiTheme: lookup = f"{prefix}{name} {key}" keys.append(lookup) data[lookup] = (file.stem, name, mode == "dark", file) - except Exception: # noqa: PERF203 + except Exception: logger.error("Could not read file: %s", file) logException() diff --git a/pyproject.toml b/pyproject.toml index fe42db85..17599847 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,7 @@ version = { attr = "novelwriter.__init__.__version__" } include = ["novelwriter*"] [tool.isort] -py_version = "310" +py_version = "311" line_length = 99 wrap_length = 79 multi_line_output = 5 diff --git a/utils/common.py b/utils/common.py index 0136cf47..a718971e 100644 --- a/utils/common.py +++ b/utils/common.py @@ -23,11 +23,10 @@ from __future__ import annotations import shutil import subprocess import sys +import tomllib from pathlib import Path -import tomllib - ROOT_DIR = Path(__file__).parent.parent SETUP_DIR = ROOT_DIR / "setup"