diff --git a/pyproject.toml b/pyproject.toml index 20e97fc..9edabac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ build-backend = "poetry.core.masonry.api" [tool.ruff] line-length = 120 +per-file-ignores = { "runme.py" = ["E402"] } [tool.mypy] disable_error_code = ["annotation-unchecked", "import-untyped"] diff --git a/runme.py b/runme.py index 841970c..6dba94e 100644 --- a/runme.py +++ b/runme.py @@ -1,12 +1,15 @@ +from src.utils import prepare_data_location_and_files + +prepare_data_location_and_files() + import sys from PyQt5.QtWidgets import QApplication -from src.utils import sync_theme, prepare_data_location_and_files, get_additional_run_args +from src.utils import sync_theme, get_additional_run_args from src.ui_mainwindow import MainWindow if __name__ == "__main__": - prepare_data_location_and_files() app = QApplication(sys.argv + get_additional_run_args()) w = MainWindow() # in case of active style change, also change theme, need to sync at start