feat: Add Pre-Push Git Hook to Enforce Code Quality Checks

Description: Currently, there is no automated check before pushing code to the repository. This can lead to broken builds, failing tests, or unformatted code being pushed.

To improve code quality and maintain consistency, we should implement a pre-push Git hook that runs essential checks before allowing a push.

Proposed Solution: Add a pre-push hook that performs the following:

  • Runs all test cases
  • Runs linting checks
  • Blocks the push if any of the above checks fail
  • Allows the push only when all checks pass successfully

Implementation Details:

  • Create a script inside .git/hooks/pre-push

  • Ensure the script is executable using:

    chmod +x .git/hooks/pre-push
  • The script should exit with a non-zero status if any check fails

Expected Outcome:

  • Prevent pushing broken or untested code
  • Maintain consistent code quality across the project
  • Reduce issues during integration and deployment

Additional Notes:

  • This hook will run locally, so developers must ensure it is set up in their environments
  • Optionally, we can later extend this using tools like Husky for better cross-team consistency