diff --git a/requirements-dev.txt b/requirements-dev.txt index 831db5a..10f8df6 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,3 +8,4 @@ pytest pytest-mock # lint/formatting ruff +isort diff --git a/src/gui/widgets.py b/src/gui/widgets.py index 14b21ce..1895a0d 100644 --- a/src/gui/widgets.py +++ b/src/gui/widgets.py @@ -1,5 +1,5 @@ +from collections.abc import Callable, Iterable, Mapping, Sequence from typing import Optional -from collections.abc import Sequence, Iterable, Callable, Mapping import wx from wx.lib.mixins.listctrl import TextEditMixin diff --git a/src/gui/wx_app.py b/src/gui/wx_app.py index 2473eef..c70001a 100644 --- a/src/gui/wx_app.py +++ b/src/gui/wx_app.py @@ -1,11 +1,11 @@ import logging from typing import Literal, Optional -import psutil +import psutil import wx import wx.adv -from common import single_call +from common import single_call from gui.layout_manager import LayoutPage from gui.on_spawn_manager import OnSpawnPage from gui.settings import SettingsPanel diff --git a/src/main.py b/src/main.py index 5275f6b..742a5c3 100644 --- a/src/main.py +++ b/src/main.py @@ -1,9 +1,9 @@ import logging import os -import psutil import signal import time +import psutil import win32con import win32gui diff --git a/src/window.py b/src/window.py index eab6b00..e58d0bd 100644 --- a/src/window.py +++ b/src/window.py @@ -1,4 +1,3 @@ -import pywintypes import ctypes import ctypes.wintypes import logging @@ -6,6 +5,7 @@ from typing import Iterator, Optional import pyvda +import pywintypes import win32con import win32gui from comtypes import GUID diff --git a/tools/format.bat b/tools/format.bat index 8a237ab..675b908 100644 --- a/tools/format.bat +++ b/tools/format.bat @@ -1 +1,2 @@ +python -m isort src python -m ruff format src test