name pre commit hooks

This commit is contained in:
Krisztián Szűcs committed 2019-03-18 12:46:29 +01:00
1 parent c97b24edef
commit 74ed3055af
1 file changed
+6 -6
+6 -6
View File
@@ -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