Add formatting to precommit
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
29f162d947
commit
691085d82f
2 changed files with 8 additions and 3 deletions
|
@ -14,3 +14,10 @@ repos:
|
|||
- id: check-rebase
|
||||
args:
|
||||
- https://git.mfocko.xyz/mfocko/precommit-example.git
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: formatting
|
||||
name: format source
|
||||
entry: make format
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
|
4
main.c
4
main.c
|
@ -1,6 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
return NULL;
|
||||
}
|
||||
int main() { return NULL; }
|
||||
|
|
Reference in a new issue