Update linting
This commit is contained in:
@@ -615,7 +615,7 @@ class GuiTheme:
|
|||||||
lookup = f"{prefix}{name} {key}"
|
lookup = f"{prefix}{name} {key}"
|
||||||
keys.append(lookup)
|
keys.append(lookup)
|
||||||
data[lookup] = (file.stem, name, mode == "dark", file)
|
data[lookup] = (file.stem, name, mode == "dark", file)
|
||||||
except Exception: # noqa: PERF203
|
except Exception:
|
||||||
logger.error("Could not read file: %s", file)
|
logger.error("Could not read file: %s", file)
|
||||||
logException()
|
logException()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ version = { attr = "novelwriter.__init__.__version__" }
|
|||||||
include = ["novelwriter*"]
|
include = ["novelwriter*"]
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
py_version = "310"
|
py_version = "311"
|
||||||
line_length = 99
|
line_length = 99
|
||||||
wrap_length = 79
|
wrap_length = 79
|
||||||
multi_line_output = 5
|
multi_line_output = 5
|
||||||
|
|||||||
+1
-2
@@ -23,11 +23,10 @@ from __future__ import annotations
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import tomllib
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import tomllib
|
|
||||||
|
|
||||||
ROOT_DIR = Path(__file__).parent.parent
|
ROOT_DIR = Path(__file__).parent.parent
|
||||||
SETUP_DIR = ROOT_DIR / "setup"
|
SETUP_DIR = ROOT_DIR / "setup"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user