diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7dceb99..7157acc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/tests/test_factories.py b/tests/test_factories.py index 558a5e8..4a43d56 100644 --- a/tests/test_factories.py +++ b/tests/test_factories.py @@ -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))") @@ -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(