ci: Run commit-message-validator with pre-commit
Lint commit messages in this repo by using pre-commit to run our own
code. This is a temporary configuration that will be replaced with
a proper pre-commit integration that can be copied by others once we
publish a version of our library that supports pre-commit and github.