This is an automated email from the ASF dual-hosted git repository.

SYaoJun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git


The following commit(s) were added to refs/heads/main by this push:
     new 3835a8b5 chore: apply pre-commit in CI (#935)
3835a8b5 is described below

commit 3835a8b5ada1cee0d676f833cf57ced6516c54a1
Author: Sem <[email protected]>
AuthorDate: Wed Jul 1 15:24:41 2026 +0200

    chore: apply pre-commit in CI (#935)
    
    * chore: apply pre-commit in CI
    
    * chore: bump the checkout version to the latest
    
    * chore: pick the fix from the #933
    
    * chore: fetch-depth 0
---
 .github/workflows/pre-commit.yml | 34 ++++++++++++++++++++++++++--------
 .pre-commit-config.yaml          |  2 +-
 2 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 7627841e..1c98e692 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -41,15 +41,33 @@ jobs:
     runs-on: ubuntu-slim
 
     steps:
-    - uses: actions/checkout@v4
+    - uses: actions/checkout@v7
       with:
         submodules: true
+        fetch-depth: 0
+
+    - name: cmake-format
+      uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+      with:
+        extra_args: cmake-format
 
-    - name: cmake-format check
-      run: |
-        pip install pre-commit
-        pre-commit install 
-        pre-commit run cmake-format -a
-    
     - name: clang-format
-      run: pre-commit run clang-format -a
\ No newline at end of file
+      uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+      with:
+        extra_args: cmake-format
+
+    - name: ruff-check
+      uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+      with:
+        extra_args: ruff-check
+
+    - name: ruff-format
+      uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+      with:
+        extra_args: ruff-format
+
+    - name: typos
+      uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
+      with:
+        extra_args: typos
+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4f07c5a5..806d6ff4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,7 +27,7 @@ repos:
         args:
         - '--verbose'
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.14.0
+    rev: v0.15.20
     hooks:
     - id: ruff-check
       files: ^python/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to