Change check order in pre-commit hook

hooks/pre-commit:
Change the order of the format check and the test runner.