Skip to content

Commit

Permalink
ARROW-4071: [Rust] Add rustfmt as a pre-commit hook
Browse files Browse the repository at this point in the history
Author: Nicolas Trinquier <[email protected]>

Closes apache#3753 from ntrinquier/ARROW-4071 and squashes the following commits:

ecdf6e3 <Nicolas Trinquier> Add pre-commit hook to check formatting
  • Loading branch information
Nicolas Trinquier authored and kszucs committed Mar 1, 2019
1 parent 32d154a commit b536457
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ repos:
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
language: system
entry: bash -c "cd rust && cargo +stable fmt --all -- --check"
files: ^rust/.*\.rs$
types:
- file
- rust
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.2.3
hooks:
Expand Down
1 change: 0 additions & 1 deletion rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ and check for lint issues:
```bash
cargo +stable fmt --all -- --check
```

0 comments on commit b536457

Please sign in to comment.