Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/linters/lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

exclude = ["docs/api/javadoc/sql/org/apache/sedona/sql/utils/index.html$",
"docs/api/scaladoc/spark/org/apache/sedona/sql/utils/index.html$",
"docs/javadoc/spark",
"docs/scaladoc/spark/org/apache/sedona/sql/utils/index.html$",
"spark://localhost:.*",
"https://dl.acm.org/doi/abs/10.1145/3318464.3389701",
"https://github.com/apache/sedona/tree/master/examples/spark-viz",
"https://github.com/apache/sedona/tree/master/examples/viz",
"https://issues.apache.org/jira.*",
"https://keyserver.pgp.com/.*",
"http://localhost:.*",
"https://mvnrepository.com/.*",
"https://whimsy.apache.org/officers/acreq.*",
"https://whimsy.apache.org/roster/pmc/sedona.*",
"https://www.datasyslab.net/",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jiayuasu this datasyslab link is broken

Apache Sedona was formerly called GeoSpark, initiated by Arizona State University [Data Systems Lab](https://www.datasyslab.net/).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbampton Can you replace it with this one: https://datasystemslab.engineering.asu.edu/

"https://www.java.com/",
"https://www.researchgate.net/figure/Relation-between-the-cartesian-axes-x-y-and-i-j-axes-of-the-pixels_fig3_313860913",
"https://www.youtube.com/.*",
"https://x.com/ApacheSedona"]
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.

# https://pre-commit.com/
name: Lint

on: [pull_request]
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,14 @@ repos:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ^docs-overrides/main\.html$|\.Rd$
- repo: https://github.com/lycheeverse/lychee.git
rev: lychee-v0.18.1
hooks:
- id: lychee
name: run lychee
description: run lychee a fast, async, stream-based link checker written in Rust
args: [--config=.github/linters/lychee.toml]
files: \.md$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ PIP := $(PYTHON) -m pip
MKDOCS := mkdocs
MIKE := mike

.PHONY: check checkinstall checkupdate install docsinstall docsbuild clean test
.PHONY: check checkinstall checklinks checkupdate install docsinstall docsbuild clean test

check:
@echo "Running pre-commit checks..."
@if ! command -v pre-commit >/dev/null 2>&1; then \
echo "Error: pre-commit is not installed. Run 'make checkinstall' first."; \
exit 1; \
fi
pre-commit run --all-files
SKIP=lychee pre-commit run --all-files

checkinstall:
@echo "Installing pre-commit..."
Expand All @@ -37,6 +37,9 @@ checkinstall:
fi
pre-commit install

checklinks:
pre-commit run lychee --all-files

checkupdate: checkinstall
@echo "Updating pre-commit hooks..."
pre-commit autoupdate
Expand Down
2 changes: 1 addition & 1 deletion docs/api/flink/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -3668,7 +3668,7 @@ SRID=4326;POLYGON ((0 0, -0.8390715290764524 0, -0.8390715290764524 1, 0 0))
## ST_S2CellIDs

Introduction: Cover the geometry with Google S2 Cells, return the corresponding cell IDs with the given level.
The level indicates the [size of cells](https://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
The level indicates the [size of cells](http://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
the cells will be smaller, the coverage will be more accurate, but the result size will be exponentially increasing.

Format: `ST_S2CellIDs(geom: Geometry, level: Integer)`
Expand Down
2 changes: 1 addition & 1 deletion docs/api/snowflake/vector-data/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,7 @@ SRID=4326;POLYGON ((0 0, -0.8390715290764524 0, -0.8390715290764524 1, 0 0))
## ST_S2CellIDs

Introduction: Cover the geometry with Google S2 Cells, return the corresponding cell IDs with the given level.
The level indicates the [size of cells](https://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
The level indicates the [size of cells](http://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
the cells will be smaller, the coverage will be more accurate, but the result size will be exponentially increasing.

Format: `ST_S2CellIDs(geom: geometry, level: Int)`
Expand Down
2 changes: 1 addition & 1 deletion docs/api/sql/Function.md
Original file line number Diff line number Diff line change
Expand Up @@ -3852,7 +3852,7 @@ SRID=4326;POLYGON ((0 0, -0.8390715290764524 0, -0.8390715290764524 1, 0 0))
## ST_S2CellIDs

Introduction: Cover the geometry with Google S2 Cells, return the corresponding cell IDs with the given level.
The level indicates the [size of cells](https://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
The level indicates the [size of cells](http://s2geometry.io/resources/s2cell_statistics.html). With a bigger level,
the cells will be smaller, the coverage will be more accurate, but the result size will be exponentially increasing.

Format: `ST_S2CellIDs(geom: Geometry, level: Integer)`
Expand Down
Loading