Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refacto(pep8): homogeneize naming conventions #15

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

from qgis.core import Qgis, QgsApplication, QgsMessageLog
from qgis.PyQt.QtCore import Qt, QVariant
from qgis.PyQt.QtGui import QColor, QIcon, QPalette
from qgis.PyQt.QtGui import QIcon
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
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