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 6b13839e33 [CI] pre-commit: run `maven-spotless-apply` and `oxipng` 
manually (#2197)
6b13839e33 is described below

commit 6b13839e335bc3377583337afc931776c505cdc4
Author: John Bampton <[email protected]>
AuthorDate: Mon Oct 20 14:41:48 2025 +1000

    [CI] pre-commit: run `maven-spotless-apply` and `oxipng` manually (#2197)
---
 .github/workflows/pre-commit.yml | 2 ++
 .pre-commit-config.yaml          | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 5a4066eb9b..3c4729aa46 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -49,3 +49,5 @@ jobs:
           key: pre-commit|${{ env.PY }}|${{ 
hashFiles('.pre-commit-config.yaml') }}
       - name: Run pre-commit
         run: pre-commit run --all-files
+      - name: Run manual pre-commit hooks
+        run: pre-commit run --all-files --hook-stage manual
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 59f19303db..6853272a44 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -58,7 +58,7 @@ repos:
         always_run:
           true # Ensures this hook runs even if no Java files are changed.
           # This is useful for spotless:apply which might affect files not 
staged.
-        stages: [pre-commit] # Specifies that this hook runs during the 
'commit' stage.
+        stages: [manual]
       - id: check-zip-file-is-not-committed
         name: check no zip files are committed
         description: Zip files are not allowed in the repository
@@ -334,6 +334,7 @@ repos:
         name: run oxipng
         description: check PNG files with oxipng
         args: ['--fix', '-o', '4', '--strip', 'safe', '--alpha']
+        stages: [manual]
   - repo: https://github.com/adamchainz/blacken-docs
     rev: 1.19.1
     hooks:

Reply via email to