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] authored and gacarrillor committed Apr 15, 2024
1 parent fd45bc1 commit f31d7e9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ repos:
ci:
autofix_prs: true
autoupdate_schedule: quarterly

1 change: 0 additions & 1 deletion pg_service_parser/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os.path


DEFAULT_PG_SERVICE_PATH = os.path.expanduser("~/.pg_service.conf")
2 changes: 1 addition & 1 deletion pg_service_parser/imgs/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pg_service_parser/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
deprecated=False
4 changes: 2 additions & 2 deletions pg_service_parser/pg_service_parser_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
14 changes: 4 additions & 10 deletions pg_service_parser/utils.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit f31d7e9

Please sign in to comment.