Skip to content

Commit

Permalink
refacto(pep8): homogeneize naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 27, 2024
1 parent 4207040 commit c93bc95
Show file tree
Hide file tree
Showing 29 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
from qgis.PyQt.QtWidgets import QMessageBox

from profile_manager.datasources.Bookmarks.bookmark_handler import import_bookmarks
from profile_manager.datasources.Customizations.customization_handler import (
from profile_manager.datasources.bookmarks.bookmark_handler import import_bookmarks
from profile_manager.datasources.customizations.customization_handler import (
import_customizations,
)
from profile_manager.datasources.Dataservices.datasource_distributor import (
from profile_manager.datasources.dataservices.datasource_distributor import (
import_data_sources,
remove_data_sources,
)
from profile_manager.datasources.Favourites.favourites_handler import import_favourites
from profile_manager.datasources.Functions.function_handler import (
from profile_manager.datasources.favourites.favourites_handler import import_favourites
from profile_manager.datasources.functions.function_handler import (
import_expression_functions,
)
from profile_manager.datasources.Models.model_handler import import_models
from profile_manager.datasources.Models.script_handler import import_scripts
from profile_manager.datasources.Plugins.plugin_handler import PluginHandler
from profile_manager.datasources.Styles.style_handler import import_styles
from profile_manager.datasources.models.model_handler import import_models
from profile_manager.datasources.models.script_handler import import_scripts
from profile_manager.datasources.plugins.plugin_handler import PluginHandler
from profile_manager.datasources.styles.style_handler import import_styles
from profile_manager.utils import adjust_to_operating_system


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from qgis.PyQt.QtCore import Qt

from profile_manager.datasources.Plugins.plugin_displayer import PluginDisplayer
from profile_manager.datasources.Plugins.plugin_importer import import_plugins
from profile_manager.datasources.Plugins.plugin_remover import remove_plugins
from profile_manager.datasources.plugins.plugin_displayer import PluginDisplayer
from profile_manager.datasources.plugins.plugin_importer import import_plugins
from profile_manager.datasources.plugins.plugin_remover import remove_plugins


class PluginHandler:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qgis.PyQt.QtGui import QColor, QIcon, QPalette
from qgis.PyQt.QtWidgets import QDialog, QListWidgetItem

from profile_manager.datasources.Dataservices.datasource_provider import (
from profile_manager.datasources.dataservices.datasource_provider import (
DATA_SOURCE_SEARCH_LOCATIONS,
get_data_sources_tree,
)
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions profile_manager/profile_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from shutil import copytree
from sys import platform

# PyQGIS
from qgis.core import Qgis, QgsMessageLog, QgsUserProfileManager
from qgis.PyQt.QtCore import (
QCoreApplication,
Expand All @@ -41,13 +42,13 @@
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QAction, QMessageBox, QWidget

# Import subclasses
from profile_manager.datasources.Dataservices.datasource_handler import (
# plugin
from profile_manager.datasources.dataservices.datasource_handler import (
DataSourceHandler,
)
from profile_manager.gui.interface_handler import InterfaceHandler
from profile_manager.profile_manager_dialog import ProfileManagerDialog
from profile_manager.profiles.profile_action_handler import ProfileActionHandler
from profile_manager.userInterface.interface_handler import InterfaceHandler
from profile_manager.utils import adjust_to_operating_system, wait_cursor


Expand Down
2 changes: 1 addition & 1 deletion profile_manager/profiles/profile_copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from qgis.PyQt.QtWidgets import QDialog, QMessageBox

from profile_manager.userInterface.name_profile_dialog import NameProfileDialog
from profile_manager.gui.name_profile_dialog import NameProfileDialog
from profile_manager.utils import wait_cursor


Expand Down
2 changes: 1 addition & 1 deletion profile_manager/profiles/profile_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from qgis.core import QgsUserProfileManager
from qgis.PyQt.QtWidgets import QDialog, QMessageBox

from profile_manager.userInterface.name_profile_dialog import NameProfileDialog
from profile_manager.gui.name_profile_dialog import NameProfileDialog
from profile_manager.utils import adjust_to_operating_system, wait_cursor


Expand Down
2 changes: 1 addition & 1 deletion profile_manager/profiles/profile_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from qgis.core import QgsApplication
from qgis.PyQt.QtWidgets import QDialog, QMessageBox

from profile_manager.userInterface.name_profile_dialog import NameProfileDialog
from profile_manager.gui.name_profile_dialog import NameProfileDialog
from profile_manager.utils import adjust_to_operating_system, wait_cursor


Expand Down

0 comments on commit c93bc95

Please sign in to comment.