Skip to content

Commit

Permalink
Merge pull request #275 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 Jan 14, 2025
2 parents 10cc5dc + deb3e5a commit f5c90f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
# - id: docformatter
# args: [--in-place, --make-summary-multi-line, --close-quotes-on-newline, --wrap-summaries, "88"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.8.6'
rev: 'v0.9.1'
hooks:
- id: ruff
- id: ruff-format
Expand Down Expand Up @@ -87,7 +87,7 @@ repos:
hooks:
- id: pyprojectsort
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.30.0"
rev: "0.31.0"
hooks:
- id: check-github-workflows
- id: check-github-actions
Expand Down
12 changes: 2 additions & 10 deletions tests/test_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,7 @@ def test_polygon_1(self) -> None:
(2.0, 3.0),
(2.0, 2.0),
)
assert (
p.wkt == "POLYGON ((1 1, 5 1, 5 5, "
"1 5, 1 1),(2 2, 3 2, "
"3 3, 2 3, 2 2))"
)
assert p.wkt == "POLYGON ((1 1, 5 1, 5 5, 1 5, 1 1),(2 2, 3 2, 3 3, 2 3, 2 2))"

def test_polygon_2(self) -> None:
p = factories.from_wkt("POLYGON ((30 10, 10 20, 20 40, 40 40, 30 10))")
Expand Down Expand Up @@ -389,11 +385,7 @@ def test_multilinestring(self) -> None:
assert isinstance(p, geometry.MultiLineString)
assert next(iter(p.geoms)).coords == ((3, 4), (10, 50), (20, 25))
assert list(p.geoms)[1].coords == ((-5, -8), (-10, -8), (-15, -4))
assert (
p.wkt == "MULTILINESTRING ((3 4, 10 50, "
"20 25),(-5 -8, "
"-10 -8, -15 -4))"
)
assert p.wkt == "MULTILINESTRING ((3 4, 10 50, 20 25),(-5 -8, -10 -8, -15 -4))"

def test_multilinestring_1(self) -> None:
p = factories.from_wkt(
Expand Down

0 comments on commit f5c90f6

Please sign in to comment.