Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 2, 2024
1 parent f8a423b commit f03efb0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 39 deletions.
2 changes: 0 additions & 2 deletions profile_manager/datasources/data_sources.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import logging

from configparser import RawConfigParser
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
from re import compile
from urllib.parse import unquote


LOGGER = logging.getLogger("profile_manager")


Expand Down
4 changes: 1 addition & 3 deletions profile_manager/datasources/plugins.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import logging

from configparser import NoSectionError, RawConfigParser
from datetime import datetime
from pathlib import Path
from shutil import rmtree, copytree

from shutil import copytree, rmtree

LOGGER = logging.getLogger("profile_manager")

Expand Down
25 changes: 7 additions & 18 deletions profile_manager/profile_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,37 @@
from typing import Optional

from qgis.core import Qgis, QgsMessageLog, QgsUserProfileManager
from qgis.PyQt.QtCore import (
QCoreApplication,
QLocale,
QSettings,
QTranslator,
)
from qgis.PyQt.QtCore import QCoreApplication, QLocale, QSettings, QTranslator
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QAction, QWidget

from profile_manager.datasources.bookmarks import import_bookmarks
from profile_manager.datasources.customization import (
import_customizations,
)
from profile_manager.datasources.customization import import_customizations
from profile_manager.datasources.data_sources import (
collect_data_sources,
import_data_sources,
remove_data_sources,
)
from profile_manager.datasources.expressions import import_expressions
from profile_manager.datasources.favourites import import_favourites
from profile_manager.datasources.expressions import (
import_expressions,
)
from profile_manager.datasources.models import import_models
from profile_manager.datasources.scripts import import_scripts
from profile_manager.datasources.plugins import (
collect_plugin_names,
remove_plugins,
import_plugins,
remove_plugins,
)
from profile_manager.datasources.scripts import import_scripts
from profile_manager.datasources.styles import import_styles

from profile_manager.profile_manager_dialog import ProfileManagerDialog
from profile_manager.profiles.profile_handler import (
create_profile,
copy_profile,
rename_profile,
create_profile,
remove_profile,
rename_profile,
)
from profile_manager.profiles.utils import get_profile_qgis_ini_path, qgis_profiles_path
from profile_manager.utils import wait_cursor


LOGGER = logging.getLogger("profile_manager")
logging.basicConfig(
format="%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s",
Expand Down
17 changes: 4 additions & 13 deletions profile_manager/profile_manager_dialog.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
from collections import defaultdict
from pathlib import Path
from typing import Optional, Literal
from typing import Literal, Optional

from qgis.core import QgsApplication
from qgis.PyQt import QtWidgets, uic
from qgis.PyQt.QtCore import QSize, Qt
from qgis.PyQt.QtWidgets import (
QDialog,
QListWidget,
QMessageBox,
QTreeWidget,
)

from qgis.core import QgsApplication
from qgis.PyQt.QtWidgets import QDialog, QListWidget, QMessageBox, QTreeWidget

from profile_manager.gui.mdl_profiles import ProfileListModel
from profile_manager.gui.name_profile_dialog import NameProfileDialog
from profile_manager.gui.utils import (
data_sources_as_tree,
plugins_as_items,
)
from profile_manager.gui.utils import data_sources_as_tree, plugins_as_items
from profile_manager.qdt_export.profile_export import (
QDTProfileInfos,
export_profile_for_qdt,
Expand Down
5 changes: 2 additions & 3 deletions profile_manager/profiles/profile_handler.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import re

from os import rename
from pathlib import Path
from shutil import rmtree, copytree
from shutil import copytree, rmtree
from sys import platform

from qgis.core import QgsUserProfileManager, QgsApplication
from qgis.core import QgsApplication, QgsUserProfileManager

from profile_manager.profiles.utils import qgis_profiles_path

Expand Down

0 comments on commit f03efb0

Please sign in to comment.