Skip to content

Commit 40dcc15

Browse files
authored
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]>
1 parent d028fa8 commit 40dcc15

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ repos:
4848
?^ci/docker/python-.*-wheel-windows-test-vs2022.*\.dockerfile$|
4949
)
5050
types: []
51-
- repo: https://github.com/MarcoGorelli/cython-lint
52-
rev: v0.12.5
53-
hooks:
54-
- id: cython-lint
55-
args: [--no-pycodestyle]
5651
- repo: https://github.com/pre-commit/mirrors-clang-format
5752
rev: v14.0.6
5853
hooks:
@@ -147,6 +142,16 @@ repos:
147142
(
148143
?^python/pyarrow/vendored/|
149144
)
145+
- repo: https://github.com/MarcoGorelli/cython-lint
146+
rev: v0.16.2
147+
hooks:
148+
- id: cython-lint
149+
name: Python (Cython) Lint
150+
alias: python-cython-lint
151+
args:
152+
- "--no-pycodestyle"
153+
files: >-
154+
^python/
150155
- repo: https://github.com/pre-commit/mirrors-clang-format
151156
rev: v14.0.6
152157
hooks:

0 commit comments

Comments
 (0)