This is an automated email from the ASF dual-hosted git repository. jiayu pushed a commit to branch prepare-1.7.2 in repository https://gitbox.apache.org/repos/asf/sedona.git
commit f6ef7732da33b78791f0af389f27cf3f432456d9 Author: John Bampton <[email protected]> AuthorDate: Mon Mar 31 14:40:33 2025 +1000 [CI] pre-commit: add `requirements-docs.txt` to `requirements-txt-fixer` (#1889) This hook auto sorts Python requirements files. Rename root `requirements.txt` to `requirements-dev.txt` And update the references in the Makefile. --- .pre-commit-config.yaml | 2 +- Makefile | 6 +++--- requirements.txt => requirements-dev.txt | 0 requirements-docs.txt | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a1defa0e6c..d2530db4ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -194,7 +194,7 @@ repos: python/tests/tools\.py )$ - id: requirements-txt-fixer - files: ^docker/requirements\.txt$ + files: ^docker/requirements\.txt$|^requirements-docs\.txt$ - id: trailing-whitespace args: [--markdown-linebreak-ext=md] exclude: ^docs-overrides/main\.html$|\.Rd$ diff --git a/Makefile b/Makefile index 4034de4d7f..b861ed228c 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,10 @@ checkupdate: checkinstall install: @echo "Installing dependencies..." - @if [ -f requirements.txt ]; then \ - $(PIP) install -r requirements.txt; \ + @if [ -f requirements-dev.txt ]; then \ + $(PIP) install -r requirements-dev.txt; \ else \ - echo "Error: requirements.txt not found."; \ + echo "Error: requirements-dev.txt not found."; \ exit 1; \ fi diff --git a/requirements.txt b/requirements-dev.txt similarity index 100% rename from requirements.txt rename to requirements-dev.txt diff --git a/requirements-docs.txt b/requirements-docs.txt index f3015888b4..8f76842070 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,6 +1,6 @@ +mike mkdocs +mkdocs-git-revision-date-localized-plugin mkdocs-jupyter -mkdocs-material mkdocs-macros-plugin -mkdocs-git-revision-date-localized-plugin -mike +mkdocs-material
