I just want to be able to run it to see if the code in my working tree passes it, without actually attempting a commit.
Just run the pre-commit script through the shell:
pre-commit
bash .git/hooks/pre-commit