This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 5f4f184dc0 [CI] pre-commit: add `requirements-docs.txt` to
`requirements-txt-fixer` (#1889)
5f4f184dc0 is described below
commit 5f4f184dc0980f08c6bf9726c8ab91a5e0fcb7b0
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 25f40fe252..67ca1cf07a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -205,7 +205,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