Skip to content

Commit 1420b62

Browse files
committed
style: run ruff
1 parent 4d9eb9b commit 1420b62

File tree

3 files changed

+117
-110
lines changed

3 files changed

+117
-110
lines changed

ORStools/common/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ def request(
183183
logger.log(f"{e.__class__.__name__}: {str(e)}", 1)
184184

185185
iface.messageBar().pushMessage(
186-
"ORSTools", "Rate limit exceeded, retrying...", level=Qgis.MessageLevel.Warning, duration=2
186+
"ORSTools",
187+
"Rate limit exceeded, retrying...",
188+
level=Qgis.MessageLevel.Warning,
189+
duration=2,
187190
)
188191

189192
return self.request(url, params, first_request_time, retry_counter + 1, post_json)

ORStools/gui/ORStoolsDialog.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,15 +623,17 @@ def load_vertices_from_layer(self, testing: str = "") -> None:
623623
if not geom:
624624
continue
625625

626-
if geom.type() == QgsWkbTypes.GeometryType.PointGeometry and QgsWkbTypes.isSingleType(
627-
geom.wkbType()
626+
if (
627+
geom.type() == QgsWkbTypes.GeometryType.PointGeometry
628+
and QgsWkbTypes.isSingleType(geom.wkbType())
628629
):
629630
pt = geom.asPoint()
630631
self.create_vertex(pt, id, layer.crs().postgisSrid())
631632
self.line_tool.create_rubber_band()
632633

633-
elif geom.type() == QgsWkbTypes.GeometryType.PointGeometry and QgsWkbTypes.isMultiType(
634-
geom.wkbType()
634+
elif (
635+
geom.type() == QgsWkbTypes.GeometryType.PointGeometry
636+
and QgsWkbTypes.isMultiType(geom.wkbType())
635637
):
636638
pts = geom.asMultiPoint()
637639
for pt in pts:

0 commit comments

Comments
 (0)