diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d306c1..d7e1340 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,4 +57,3 @@ repos: ci: autofix_prs: true autoupdate_schedule: quarterly - diff --git a/pg_service_parser/config.py b/pg_service_parser/config.py index 65003ad..d294428 100644 --- a/pg_service_parser/config.py +++ b/pg_service_parser/config.py @@ -1,4 +1,3 @@ import os.path - DEFAULT_PG_SERVICE_PATH = os.path.expanduser("~/.pg_service.conf") diff --git a/pg_service_parser/imgs/warning.svg b/pg_service_parser/imgs/warning.svg index c6b8c23..539b63e 100644 --- a/pg_service_parser/imgs/warning.svg +++ b/pg_service_parser/imgs/warning.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/pg_service_parser/metadata.txt b/pg_service_parser/metadata.txt index 366d50f..3e6e196 100644 --- a/pg_service_parser/metadata.txt +++ b/pg_service_parser/metadata.txt @@ -14,4 +14,4 @@ tracker=https://github.com/opengisch/qgis-pg-service-parser-plugin/issues repository=https://github.com/opengisch/qgis-pg-service-parser-plugin icon=images/icon.png experimental=False -deprecated=False \ No newline at end of file +deprecated=False diff --git a/pg_service_parser/pg_service_parser_plugin.py b/pg_service_parser/pg_service_parser_plugin.py index df0d78f..126586f 100644 --- a/pg_service_parser/pg_service_parser_plugin.py +++ b/pg_service_parser/pg_service_parser_plugin.py @@ -3,13 +3,13 @@ from pg_service_parser.gui.dlg_pg_service import PgServiceDialog -class PgServiceParserPlugin(): +class PgServiceParserPlugin: def __init__(self, iface): self.iface = iface self.action = None def initGui(self): - self.action = QAction('Go!', self.iface.mainWindow()) + self.action = QAction("Go!", self.iface.mainWindow()) self.action.triggered.connect(self.run) self.iface.addToolBarIcon(self.action) diff --git a/pg_service_parser/utils.py b/pg_service_parser/utils.py index 02a9388..9c7f47f 100644 --- a/pg_service_parser/utils.py +++ b/pg_service_parser/utils.py @@ -1,6 +1,6 @@ import os -from qgis.PyQt.uic import (loadUiType, - loadUi) + +from qgis.PyQt.uic import loadUiType from pg_service_parser.config import DEFAULT_PG_SERVICE_PATH @@ -16,14 +16,8 @@ def get_ui_class(ui_file): def get_ui_file_path(ui_file) -> str: - os.path.sep.join(ui_file.split('/')) - ui_file_path = os.path.abspath( - os.path.join( - os.path.dirname(__file__), - 'ui', - ui_file - ) - ) + os.path.sep.join(ui_file.split("/")) + ui_file_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "ui", ui_file)) return ui_file_path