-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the pre-commit project
- Adds a config file that allows users of https://pre-commit.com to easily add a cmake-format pre-commit hook to their git project.
- Loading branch information
1 parent
2e2aff2
commit f1254e8
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- id: cmake-format | ||
name: cmake-format | ||
description: cmake-format can format your listfiles nicely so that they don't look like crap. | ||
entry: cmake-format | ||
language: python | ||
types: [file, text] | ||
files: '(CMakeLists\.txt|\.cmake|\.cmake\.in)$' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters