Add pre-commit hook to run linter and clang-format