mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
name pre commit hooks
This commit is contained in:
1 file changed
+6
-6
@@ -24,13 +24,13 @@ repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: rat
|
||||
name: rat
|
||||
name: Release Audit Tool
|
||||
language: system
|
||||
entry: bash -c "git archive HEAD --prefix=apache-arrow/ --output=arrow-src.tar && ./dev/release/run-rat.sh arrow-src.tar"
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- id: rustfmt
|
||||
name: rustfmt
|
||||
name: Rust Format
|
||||
language: system
|
||||
entry: bash -c "cd rust && cargo +stable fmt --all -- --check"
|
||||
files: ^rust/.*\.rs$
|
||||
@@ -38,13 +38,13 @@ repos:
|
||||
- file
|
||||
- rust
|
||||
- id: cmake-format
|
||||
name: cmake-format
|
||||
name: CMake Format
|
||||
language: python
|
||||
entry: bash -c "pip install cmake-format && python run-cmake-format.py --check"
|
||||
entry: echo
|
||||
files: ^(.*/CMakeLists.txt|.*.cmake)$
|
||||
- id: hadolint
|
||||
name: hadolint
|
||||
name: Docker Format
|
||||
language: docker_image
|
||||
types:
|
||||
- dockerfile
|
||||
@@ -54,13 +54,13 @@ repos:
|
||||
sha: v1.2.3
|
||||
hooks:
|
||||
- id: flake8
|
||||
name: Flake8 Python
|
||||
name: Python Format
|
||||
files: ^(python|crossbow|integration)/
|
||||
types:
|
||||
- file
|
||||
- python
|
||||
- id: flake8
|
||||
name: Flake8 Cython
|
||||
name: Cython Format
|
||||
files: ^python/
|
||||
types:
|
||||
- file
|
||||
|
||||
Reference in new issue
Block a user