Skip to content

Commit

Permalink
Linter updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Feb 4, 2025
1 parent 34ebf1d commit 20e6eaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ disable=raw-checker-failed,
too-many-statements,
attribute-defined-outside-init,
unused-argument,
consider-using-from-import
consider-using-from-import,
line-too-long
4 changes: 0 additions & 4 deletions maps4fs/generator/component/i3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ def _add_splines(self) -> None:

node_id = SPLINES_NODE_ID_STARTING_VALUE
for road_id, road_info in enumerate(roads_polylines, start=1):
# Add to scene node
# <Shape name="spline01_CSV" translation="0 0 0" nodeId="11" shapeId="11"/>

road_info: dict[str, str | list[tuple[int, int]]]
points = road_info.get("points")
tags = road_info.get("tags")

Expand Down
2 changes: 1 addition & 1 deletion maps4fs/generator/component/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def _add_roads(self, layer: Layer, info_layer_data: dict[str, list[list[int]]])
"points": linestring,
"tags": str(layer.tags),
}
info_layer_data[f"{layer.info_layer}_polylines"].append(linestring_entry)
info_layer_data[f"{layer.info_layer}_polylines"].append(linestring_entry) # type: ignore

def dissolve(self) -> None:
"""Dissolves textures of the layers with tags into sublayers for them to look more
Expand Down

0 comments on commit 20e6eaa

Please sign in to comment.