Skip to content

Commit

Permalink
style: run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Jun 10, 2024
1 parent 6b90812 commit 85058e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from qgis.gui import QgsMapCanvasAnnotationItem

from qgis.PyQt.QtCore import QSizeF, QPointF, QCoreApplication, Qt
from qgis.PyQt.QtGui import QIcon, QTextDocument,QColor
from qgis.PyQt.QtGui import QIcon, QTextDocument, QColor
from qgis.PyQt.QtWidgets import (
QAction,
QDialog,
Expand All @@ -69,7 +69,8 @@
__version__,
__email__,
__web__,
__help__, ROUTE_COLOR,
__help__,
ROUTE_COLOR,
)
from ORStools.common import (
client,
Expand Down Expand Up @@ -648,9 +649,9 @@ def _on_movetool_map_release(self, point, idx):
for x in range(self.routing_fromline_list.count())
]
backup = items.copy()
items[
self.move_i
] = f"Point {self.move_i}: {point_wgs.x():.6f}, {point_wgs.y():.6f}"
items[self.move_i] = (
f"Point {self.move_i}: {point_wgs.x():.6f}, {point_wgs.y():.6f}"
)
self.moved_idxs += 1

self.routing_fromline_list.clear()
Expand Down
2 changes: 1 addition & 1 deletion ORStools/utils/maptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def canvasPressEvent(self, e):
mouseMoved = pyqtSignal(["QPoint"])

def canvasMoveEvent(self, e):
self.mouseMoved.emit(e.pos())
self.mouseMoved.emit(e.pos())
2 changes: 1 addition & 1 deletion ORStools/utils/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ def route_as_layer(dlg):
# Set URL in debug window
if params:
clnt_msg += f'<a href="{clnt.url}">{clnt.url}</a><br>Parameters:<br>{json.dumps(params, indent=2)}'
dlg.debug_text.setHtml(clnt_msg)
dlg.debug_text.setHtml(clnt_msg)

0 comments on commit 85058e9

Please sign in to comment.