Skip to content

Commit

Permalink
Add force_2d and force_3d functions to pygeoif/__init__.py fixes #255
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 21, 2024
1 parent 5b3f9ed commit 8b04d23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions pygeoif/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,6 +46,8 @@
"MultiPolygon",
"Point",
"Polygon",
"force_2d",
"force_3d",
"from_wkt",
"mapping",
"orient",
Expand Down

0 comments on commit 8b04d23

Please sign in to comment.