Fix pre-commit hook to format the entire tree