pre-commit: Add a hook to check whitespaces and conflict markers

The hook uses settings from `.gitattributes`.
4 files changed