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 Jul 1, 2024
1 parent 4bb07e2 commit 3a4d44a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygeoif/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"GEOMETRYCOLLECTION)"
r"[ACEGIMLONPSRUTYZ\d,\.\-\(\) ]+)$"
),
flags=re.I,
flags=re.IGNORECASE,
)
gcre: Pattern[str] = re.compile(
r"POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON",
Expand Down Expand Up @@ -92,7 +92,7 @@ def box(
"""Return a rectangular polygon with configurable normal vector."""
coords = [(maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny)]
if not ccw:
coords = coords[::-1]
coords.reverse()
return Polygon(coords)


Expand Down Expand Up @@ -188,7 +188,7 @@ def _line_from_wkt_coordinates(coordinates: str) -> LineString:
coords = coordinates.split(",")
return LineString(
cast(
LineType, #
LineType,
[tuple(num(c) for c in coord.split()) for coord in coords],
),
)
Expand Down

0 comments on commit 3a4d44a

Please sign in to comment.