-
Notifications
You must be signed in to change notification settings - Fork 56
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 #183 from flagarde/pre-commit_clang-format
Use clang-format with pre-commit
- Loading branch information
Showing
4 changed files
with
4,159 additions
and
3,547 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
name: pre-commit Check | ||
on: [push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: pre-commit | ||
# You may pin to the exact commit or the version. | ||
# uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 | ||
uses: pre-commit/[email protected] |
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,20 @@ | ||
--- | ||
default_install_hook_types: | ||
- pre-commit | ||
- pre-merge-commit | ||
- pre-push | ||
- prepare-commit-msg | ||
- commit-msg | ||
- post-commit | ||
- post-checkout | ||
- post-merge | ||
- post-rewrite | ||
|
||
fail_fast: false | ||
|
||
repos: | ||
|
||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v14.0.6 | ||
hooks: | ||
- id: clang-format |
Oops, something went wrong.