tooling: Add pre-commit file
Adds a config file for https://pre-commit.com/. This may be extended in the future, perhaps even replacing the justfile
at some point.
For now I just added all the tests from the justfile
and a couple of pre-commit's own ones.