From f8a4a8a47477e4d66144e80d1d551b40d3e7dfea Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 24 Oct 2024 11:16:57 +1000 Subject: [PATCH] =?UTF-8?q?[CI]=20Add=20pre-commit=20hook=20`requirements-?= =?UTF-8?q?txt-fixer`=20for=20Python=20requirem=E2=80=A6=20(#1635)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#requirements-txt-fixer refs https://github.com/apache/sedona/pull/1418 refs https://github.com/apache/sedona/pull/1349 --- .pre-commit-config.yaml | 2 ++ docker/sedona-spark-jupyterlab/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d35c90bcb..df652e1181 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,6 +78,8 @@ repos: - id: forbid-submodules - id: mixed-line-ending exclude: \.csv$ + - id: requirements-txt-fixer + files: ^docker/sedona-spark-jupyterlab/requirements\.txt$ - id: trailing-whitespace args: [--markdown-linebreak-ext=md] exclude: ^docs-overrides/main\.html$|\.Rd$ diff --git a/docker/sedona-spark-jupyterlab/requirements.txt b/docker/sedona-spark-jupyterlab/requirements.txt index 00ed6a2cc3..aa233c3912 100644 --- a/docker/sedona-spark-jupyterlab/requirements.txt +++ b/docker/sedona-spark-jupyterlab/requirements.txt @@ -1,8 +1,6 @@ attrs descartes fiona==1.8.22 -pandas==1.5.3 -shapely==2.0.4 geopandas==0.14.4 rasterio==1.3.11 ipykernel @@ -11,5 +9,7 @@ jupyterlab==3.6.4 jupyterlab-widgets==1.1.7 keplergl==0.3.2 matplotlib -pydeck==0.8.0 numpy<2 +pandas==1.5.3 +pydeck==0.8.0 +shapely==2.0.4