Skip to content

Commit

Permalink
style: ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi committed May 15, 2024
1 parent a0c050b commit 9e7dbde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ORStools/common/directions_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ def build_default_parameters(


def get_extra_info_features_directions(response: dict, extra_info_order: list[str]):
extra_info_order = [key if key != "waytype" else "waytypes" for key in extra_info_order] # inconsistency in API
extra_info_order = [
key if key != "waytype" else "waytypes" for key in extra_info_order
] # inconsistency in API
response_mini = response["features"][0]
coordinates = response_mini["geometry"]["coordinates"]
feats = list()
Expand Down
5 changes: 3 additions & 2 deletions ORStools/proc/directions_points_layer_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def processAlgorithm(self, parameters, context, feedback):
**get_fields_options, line=True, extra_info=extra_info
)


(sink, dest_id) = self.parameterAsSink(
parameters,
self.OUT,
Expand Down Expand Up @@ -221,7 +220,9 @@ def sort(f):
)

if extra_info:
feats = directions_core.get_extra_info_features_directions(response, extra_info)
feats = directions_core.get_extra_info_features_directions(
response, extra_info
)
for feat in feats:
sink.addFeature(feat)
else:
Expand Down

0 comments on commit 9e7dbde

Please sign in to comment.