Add local format-code hook to pre-commit config

Introduces a new local hook 'format-code' that runs 'make apply-formatting' to ensure code formatting is applied automatically during pre-commit. The hook is set to always run.
This commit is contained in:
amithkoujalgi
2025-09-20 15:40:02 +05:30
parent cac94e0faf
commit 7a2a307a0a
5 changed files with 56 additions and 49 deletions

View File

@@ -26,6 +26,14 @@ repos:
- id: commitizen
stages: [commit-msg]
- repo: local
hooks:
- id: format-code
name: Format Code
entry: make apply-formatting
language: system
always_run: true
# # for java code quality
# - repo: https://github.com/gherynos/pre-commit-java
# rev: v0.6.10