🚀 feat(githooks, Makefile): add pre-commit hook to run 'make format' before committing
🔧 chore(Makefile): add 'init' target to install pre-commit hooks
The pre-commit hook is added to run 'make format' before committing. This ensures that the code is formatted correctly before it is committed. The Makefile is updated to include an 'init' target that installs the pre-commit hooks.
This commit is contained in:
parent
b42b4e5868
commit
d5f2d83511
2 changed files with 10 additions and 1 deletions
2
.githooks/pre-commit
Executable file
2
.githooks/pre-commit
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
make format
|
||||
Loading…
Add table
Add a link
Reference in a new issue