Add pre-commit hook to format files properly