Skip to content

Commit

Permalink
ARROW-4918: [C++] Add cmake-format to pre-commit
Browse files Browse the repository at this point in the history
Also extended the pattern to cover all the CMake code I've written in the last weeks.

Author: Uwe L. Korn <[email protected]>

Closes #3935 from xhochy/ARROW-4918 and squashes the following commits:

0c8db42 <Uwe L. Korn> ARROW-4918:  Add cmake-format to pre-commit
  • Loading branch information
xhochy authored and wesm committed Mar 17, 2019
1 parent 9d2280f commit 79c93c7
Show file tree
Hide file tree
Showing 28 changed files with 2,278 additions and 1,940 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ repos:
types:
- file
- rust
- id: 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)$
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.2.3
hooks:
Expand Down
Loading

0 comments on commit 79c93c7

Please sign in to comment.