-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #404 from mabruzzo/precommit
Introducing pre-commit configuration to call clang-format
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 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,15 @@ | ||
ci: | ||
autofix_prs: false | ||
|
||
|
||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
# unlike most pre-commit tools, the version of this repository exactly | ||
# matches the version of clang-format | ||
rev: v17.0.1 | ||
hooks: | ||
- id: clang-format | ||
verbose: true | ||
types_or: [c++, c, cuda] | ||
args: ["-style=file", "--verbose"] | ||
|
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