From 8b04d23ea835efaf2bd41765c1939676fbcd3fef Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Mon, 21 Oct 2024 17:47:08 +0100 Subject: [PATCH] Add force_2d and force_3d functions to pygeoif/__init__.py fixes #255 --- .pre-commit-config.yaml | 11 ++++++----- pygeoif/__init__.py | 5 +++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3003cbe5..2475cf81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,15 +35,16 @@ repos: rev: 5.13.2 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 24.10.0 - hooks: - - id: black +# - repo: https://github.com/PyCQA/docformatter +# rev: v1.7.5 +# hooks: +# - 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.6.9' hooks: - id: ruff - args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format - repo: https://github.com/PyCQA/flake8 rev: 7.1.1 hooks: diff --git a/pygeoif/__init__.py b/pygeoif/__init__.py index ff97a73f..809289f9 100644 --- a/pygeoif/__init__.py +++ b/pygeoif/__init__.py @@ -16,7 +16,10 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # """PyGeoIf provides a GeoJSON-like protocol for geo-spatial (GIS) vector data.""" + from pygeoif.about import __version__ # noqa: F401 +from pygeoif.factories import force_2d +from pygeoif.factories import force_3d from pygeoif.factories import from_wkt from pygeoif.factories import mapping from pygeoif.factories import orient @@ -43,6 +46,8 @@ "MultiPolygon", "Point", "Polygon", + "force_2d", + "force_3d", "from_wkt", "mapping", "orient",