🚀 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:
Gabriel Almeida 2023-05-27 12:59:44 -03:00
commit d5f2d83511
2 changed files with 10 additions and 1 deletions

2
.githooks/pre-commit Executable file
View file

@ -0,0 +1,2 @@
make format