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

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 40dcc15a2e GH-46545: [CI][Dev][Python] Update pre-commit for 
cython-lint (#46580)
40dcc15a2e is described below

commit 40dcc15a2e24be368a37031dedf7d42d08fbab6c
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon May 26 21:20:36 2025 +0900

    GH-46545: [CI][Dev][Python] Update pre-commit for cython-lint (#46580)
    
    ### Rationale for this change
    
    `cython-lint` configuration is outdated.
    
    ### What changes are included in this PR?
    
    * Update version
    * Add name
    * Add alias
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #46545
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 .pre-commit-config.yaml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 887a329052..25f1eebcd9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -48,11 +48,6 @@ repos:
           ?^ci/docker/python-.*-wheel-windows-test-vs2022.*\.dockerfile$|
           )
         types: []
-  - repo: https://github.com/MarcoGorelli/cython-lint
-    rev: v0.12.5
-    hooks:
-      - id: cython-lint
-        args: [--no-pycodestyle]
   - repo: https://github.com/pre-commit/mirrors-clang-format
     rev: v14.0.6
     hooks:
@@ -147,6 +142,16 @@ repos:
           (
           ?^python/pyarrow/vendored/|
           )
+  - repo: https://github.com/MarcoGorelli/cython-lint
+    rev: v0.16.2
+    hooks:
+      - id: cython-lint
+        name: Python (Cython) Lint
+        alias: python-cython-lint
+        args:
+          - "--no-pycodestyle"
+        files: >-
+          ^python/
   - repo: https://github.com/pre-commit/mirrors-clang-format
     rev: v14.0.6
     hooks:

Reply via email to