Greatly simplify pre-commit hook

Signed-off-by: Jack Nagel <jacknagel@gmail.com>