Skip to content

Commit

Permalink
feat: add fmt githook
Browse files Browse the repository at this point in the history
This is something that I always want to do
but I never started. So this is a good way to start.

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
royalpinto007 authored and vincenzopalazzo committed Dec 30, 2023
1 parent 3310567 commit 30090da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# check everything else
cargo fmt -- --check
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ install:

integration: default
$(CC) test -j 4 -p tests $(ARGS)

setup:
git config core.hooksPath .githooks

0 comments on commit 30090da

Please sign in to comment.