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 28, 2024
1 parent 797ef44 commit f43a12d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion menu_from_project/logic/layer_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ def addLayer(
return newLayer, relationsToBuild

else:
self.log("Layer {} not found. Can't add layer to QGIS.".format(layerId), indent=loop)
self.log(
"Layer {} not found. Can't add layer to QGIS.".format(layerId),
indent=loop,
)

return None, None

Expand Down
1 change: 0 additions & 1 deletion menu_from_project/logic/project_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path
from typing import Dict, Optional, Tuple


# PyQGIS
from qgis.core import QgsMapLayerType, QgsMessageLog, QgsWkbTypes
from qgis.PyQt import QtXml
Expand Down
4 changes: 3 additions & 1 deletion menu_from_project/logic/qgs_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ def getQgsDoc(self, uri: str) -> Tuple[QtXml.QDomDocument, str]:

return doc, project_path

def getMapLayerDomFromQgs(self, fileName: str, layerId: str) -> Optional[QtXml.QDomNode]:
def getMapLayerDomFromQgs(
self, fileName: str, layerId: str
) -> Optional[QtXml.QDomNode]:
"""Return the maplayer node in a project filepath given a maplayer ID.
:param fileName: The project filepath on the filesystem.
Expand Down
1 change: 0 additions & 1 deletion menu_from_project/logic/xml_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from typing import Optional

# PyQGIS
Expand Down

0 comments on commit f43a12d

Please sign in to comment.