From 483be2dec0c39a045752dd7c02956a5cf18f2f80 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:39:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From deb3e5a454803d2343636c4b38457cbc51215548 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:41:00 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_factories.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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(