[SCM] PostGIS branch master updated. 3.5.0-201-g2a3669666

git at osgeo.org git at osgeo.org
Mon Jan 27 13:33:00 PST 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  2a36696661a000b1bfb775a9c61ff441667a7315 (commit)
       via  54219526a6c937179d1ce0afea79e64a9c755bf5 (commit)
      from  cc75b983ed9e36b4124e108141e5c638f4da1a6a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2a36696661a000b1bfb775a9c61ff441667a7315
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jan 27 22:12:42 2025 +0100

    Add check-spell Makefile target and hook it to "check" one
    
    Skips the test if codespell is not installed.
    Install codespell in gitlab-ci, to enable those tests.

diff --git a/.codespellrc b/.codespellrc
index 05df63a69..daf57c70c 100644
--- a/.codespellrc
+++ b/.codespellrc
@@ -1,3 +1,3 @@
 [codespell]
-skip = *.sql,*.po,spatial_ref_sys.sql,./deps,./extras/tiger_geocoder/tables/lookup_tables_2011.sql,./extras/tiger_geocoder/pagc_normalize/pagc_tables.sql,./extensions/address_standardizer,./configure,./macros/*.m4,./autom4te.cache,./build-aux,./libtool,./extensions/postgis_tiger_geocoder/*.in,.git,build*
+skip = *.sql,*.po,spatial_ref_sys.sql,./deps,./extras/tiger_geocoder/tables/lookup_tables_2011.sql,./extras/tiger_geocoder/pagc_normalize/pagc_tables.sql,./extensions/address_standardizer,./configure*,./macros/*.m4,./autom4te.cache,./build-aux,./libtool,./extensions/postgis_tiger_geocoder/*.in,.git,build*
 ignore-words = .codespell.ignore
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 376d2e336..ee4d9d870 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@
   before_script:
     - apt-get update -qq && apt-get install -y
         autoconf
+        codespell
         bison
         build-essential
         docbook-xsl-ns
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 2d8898364..2b2b68fb2 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -78,7 +78,7 @@ clean-local:
 # TODO: drop 'test' target..
 test: check
 
-check: check-unit docs-check check-lint
+check: check-unit docs-check check-lint check-spell
 
 ifeq (@SUPPORT_POSTGRESQL@,yes)
 check: check-regress
@@ -304,3 +304,10 @@ ifeq (@TOPOLOGY@,topology)
 	$(MAKE) -C topology/test $@
 endif
 
+
+check-spell:
+ifneq (@CODESPELL@,)
+	cd $(top_srcdir) && @CODESPELL@
+else
+	@echo "SKIP: codespell not installed, cannot check spell"
+endif
diff --git a/configure.ac b/configure.ac
index ed5d17255..ccb778064 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,6 +186,11 @@ case $host_os in
 esac
 AC_SUBST([MINGWBUILD])
 
+AC_PATH_PROG([CODESPELL], [codespell], [])
+if test "x$CODESPELL" = "x"; then
+	AC_MSG_WARN([codespell is not installed so spelling cannot be checked])
+fi
+
 AC_PATH_PROG([PERL], [perl], [])
 if test "x$PERL" = "x"; then
         AC_MSG_ERROR([Perl was not found. Building PostGIS requires Perl.])

-----------------------------------------------------------------------

Summary of changes:
 .codespell.ignore | 14 ++++++++------
 .codespellrc      |  2 +-
 .gitlab-ci.yml    |  1 +
 GNUmakefile.in    |  9 ++++++++-
 configure.ac      |  5 +++++
 5 files changed, 23 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list