Skip to content

Commit

Permalink
Merge pull request #237 from cleder/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
cleder authored Jul 2, 2024
2 parents 7c8400d + 3a4d44a commit 1f74085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.4.10'
rev: 'v0.5.0'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down Expand Up @@ -68,7 +68,7 @@ repos:
- flake8-typing-imports
- flake8-use-fstring
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
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 1f74085

Please sign in to comment.